+1 vote

this is the script i want to process (it works fine when tree is not paused)

extends Area2D
func _input_event(viewport, event, shape_idx):
    if event is InputEventMouseButton :
        if event.button_index == BUTTON_LEFT :
            if event.pressed :
                get_tree().change_scene("res://scenes/Game.tscn")

the node which i want to keep processing is in the same scene as the others, i pause the tree from a different node (but still in the same scene)

in Engine by (157 points)

What if you place the node that needs to process under the CanvasLayer node?
Like this :
o CanvasLayer
|---o Area2D (set pause mode to process)
Mine's work this way, I hope this work for you too

nope, still doesnt work that way :/

i tryed to put a button instead of an area2d to click, and the button works :O

@Tove : just had the same problem in Godot 3.1.1 ...

Seems like an example of long-standing (and still-open) issue https://github.com/godotengine/godot/issues/3703

Don't know of any workarounds at this time.

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.

Categories