Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Cattoh |
So im making a 2d platformer and followed a tutorial to make the scene reload once you fall inside an area 2d it works perfectly but only once, if i try to drop my character to there again it will just continue falling like it isnt there, why is this?
My code is
var k
func _on_Fallzone_body_entered(_body):
k=get_tree().change_scene(“res://Level1.tscn”)
Is the function getting triggered when the player falls in? Did you connect the signal when you changed the scene?
exuin | 2021-05-03 02:21