Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | stan.wick.52 |
I have a menu scene and a level scene. I used a touch screen button with a pressed signal to go from the menu to the level scene with get_tree().change_scene()
and another touchscreen button with the same function in the level to go to the menu.
The problem is that when I go to the level and return to the menu, I can no longer go to the level scene. How can I fix this?
PS - both scenes are very simple
Menu - control
Touchscreen button (with signal and change scene script)
Colour rect
Level - node2d
Touchscreen button (with signal and change scene script)
Colour rect
You need to give us more detail (like your code or scene structure).
Skyfrit | 2020-12-11 05:26
It’s kind of a test project so I don’t have much code, only the change_scene() statement called from the touchscreen buttons
stan.wick.52 | 2020-12-11 18:58
The ColorRect is below or above the TouchScreenButton?
Skyfrit | 2020-12-11 19:52
Its below the texture button
stan.wick.52 | 2020-12-12 09:30
I really can’t reproduce the problem, I give you my Test project, maybe you can find where the problem is.
https://www.dropbox.com/s/hkkppc193e0mu7r/Test2.zip?dl=0
Skyfrit | 2020-12-12 19:01
Thanks. I’ll get back to you as soon as possible
stan.wick.52 | 2020-12-13 18:35
I’ve seen the problem. I forgot to remove a line of code that paused the level scene.
I’m sorry I put you through such stress
stan.wick.52 | 2020-12-13 20:27