0 votes

i tried to do like this, but it doesn't work.:

Scene.mouse_filter = MOUSE_FILTER_IGNORE
Scene.mouse_filter = Control.MOUSE_FILTER_IGNORE
Scene.mouse_filter = 2

Another problem may be in the signal or in the path to the node, here is the complete code of my script:

onready var MainMenu = $MainMenu
onready var Chapters = $Chapters
onready var Options = $Options

func _on_MainMenu_change_to_chapters():
    MainMenu.mouse_filter = MOUSE_FILTER_IGNORE
    yield(get_tree().create_timer(transition_duration), "timeout")
    MainMenu.visible = false
    Chapters.visible = true
    Options.visible = false
    Chapters.mouse_filter = MOUSE_FILTER_STOP #default value
Godot version v3.3.4-stable
in Engine by (158 points)

It should work.
Please describe what happens and what do you want to happen in your project

nvm I fixed it

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 Frequently asked questions and 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 [email protected] with your username.