Topic was automatically imported from the old Question2Answer platform.
Asked By
Nirmal
Hey how do i reset control node while switching scene’s
like from gameover scene to World scene
In my project when my player hp reaches 0 it switches to gameover scene then when i press restart button with get_tree().change_scene("res://Node2D.tscn") this simple code
it changes scene, But My playerhp is still in 0
setters is used for playerhp, any solution?
You do not require to put the scene name in the brackets as the code auto-detects the scene. I hope this helped!
hey did u read my question properly my question is “like from gameover scene to World scene”?
im using a seperate scene to display “gameover”
Any solution for this?