#Buttons working in other scenes

14 messages · Page 1 of 1 (latest)

spare shadow
#

hey everyone, I have this issue where the home page buttons still work in other scenes, it's really annoying as when you click in a random spot it might be where the button is and send you to a completely different scene, removing all progress.
Idk how this is happening as everything is seperated. The buttons are in a "home" scene and in the "home" script and they dont show up but still work in other scenes. If someone could please help me i'd appreciate it a lot

naive needle
#

you mean the scene is not loaded or just hidden?

spare shadow
#

well im pretty new... I'm not sure all I know i have is that upon button press, i "get_tree().change_scene_to_file("next scene")"

#

this is literally it

naive needle
#

yeah, it should unload the other scene. Weird.

#

are you sure is nothing else that could be changing scenes in your game scene?

spare shadow
#

well I have like finish lines etc that change scenes to next levels, but the issue happens when I click in a spot where the buttons should be if i was on the home page, so I'm sure it's that

naive needle
#

did you check the remote tree to see if for some reason the other scene still there?

spare shadow
#

yeah, but i fixed it haha

#

I just created a new home page and did everything the exact same and the bug is fixed... really odd

naive needle
#

technology...

spare shadow
#

haha yep

#

well thanks for the help

#

i really appreciate it