Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Krasapan |
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
Scene.MOUSE_FILTER_IGNORE
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():
fade.fade_in()
ui_sound.play()
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
fade.fade_out()
It should work.
Please describe what happens and what do you want to happen in your project
Inces | 2021-10-14 15:33
nvm I fixed it
Krasapan | 2021-10-14 18:13