Click the Sprite3D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By morningkingdom

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

example:

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?

Thanks.


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:

You can set the pause_mode property of a node to change how it behaves when the SceneTree is paused:
Node — Godot Engine (stable) documentation in English

It is very simple :slight_smile: 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.

timothybrentwood | 2021-05-12 12:47

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.
Thanks.

morningkingdom | 2021-05-12 15:49

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.

timothybrentwood | 2021-05-12 16:13

what can i say, thanks :smiley:

morningkingdom | 2021-05-12 16:34