![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | JakeCarbine |
hello I am trying to reload a my pong game when the game is over here is my code where I execute that behavior:
if Input.is_action_pressed("ui_reset")&&endGame:
get_tree().reload_current_scene()
here is the error I get in my debugger:
E 0:00:30.599 reload_current_scene: Condition "!current_scene" is true. Returned: ERR_UNCONFIGURED
<C++ Source> scene/main/scene_tree.cpp:1319 @ reload_current_scene()
<Stack Trace> Level.gd:36 @ _process()
it traces back to that same line. please could you assist me.