0 votes

Hi, i made a interactive menu in 3d scene with Sprite3d and normaly i can make touch input with area node signal areainputevent.


var triger = false
    func _on_Area_input_event(camera, event, click_position, click_normal, shape_idx):
    if event is InputEventScreenTouch:
        if event.is_pressed():
            triger = true
func _process(delta):
    if triger == true:
        print ("there is a touch")

this is just an example and it works, EXCEPT on my game project. I really couldn't point it out what is the problem.
I mean this logic perfectly work on a any other project i did open and try. But didnt work on my main project.

area node : Input Ray Pickable also checked.

but there is noting. no eror.
and no feedback. its just doesn't work.

But real sad part is not this problem. Maybe i can solve this one, but while searcing around forums for solution, i discovered that, when game engine is at pause mode, i mean this

get_tree().paused = true

area input_events in 3d doesn't work, its a bug or something and when i check the github topic about it, it still not got fix it. soo im in a big pinch guys.

I have menu that, when start interact with player game goes the pause mode, except menu itself, but i cant click it, i thoug use area and input rays but toss the wall, so is there any other solution for this?



Long story short this is what happen.
-Game paused,
-few objects pause mode is set to process,
-but still, area input cant return a value.

i need a way, when game(3d scene) still paused and my menu(sprite3d) set to process, area node that child of the sprite3d return the touch feedback, so player can click it. good god, why this is so hard i still dont get it, its realy simple work flow when you think about it. lol.

this is video that tell more clearly:

Godot version 3.2.2 stable
in Engine by (94 points)

You can set the pause_mode property of a node to change how it behaves when the SceneTree is paused:

It is very simple :) Having the knowledge of the engine and knowing where to look is the hard part! Haha! A lot of the functions in the Node and Object classes are useful, if you haven't read the docs on them already, they're worth a read.

well bro, the thing is, i know allready. And im doing it if you read the my first comment, you will see that, i did what you told. But when this conditions is set
-3d scene,
-engine is paused ,
-area input signals do not work, even you set the nodes pause mode to Process, its still do not work.

i even made a example project for this and take a video. link is in the my firs comment.

Sorry I missed "few objects pause mode is set to process" in your gigantic wall of text. Your response to my comment makes me not want to help you further, so good luck.

what can i say, thanks :D

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.