![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Syl |
Greets!
Meaning i got a button wich once pressed should change scenes, and i want to use it with different CollisionShapes. Trouble is, it only change to the last scene signaled, not the one written in script.
How could i change that please?
Here’s the signal used to connect my Area2D/CollisionShape and their scripts:
func _on_Enter_pressed():
get_tree().change_scene("res://Scenes/Gipsy-camp.tscn")
The name of the scenes are changed, but it only loads the last signalled one, whatever the name written.
It would be easier for us to understand your issue if you provided the code you are using.
You could edit your post and include snippets of the code.
Mitcha47 | 2020-02-18 18:37
Ok, edited. Hope it’s enough, dunno what to add.
Maybe a shot of my GUI buttons:
Imgur: The magic of the Internet
The ‘enter’ one is the greyed one.
Syl | 2020-02-18 20:23