So im simply trying to start a timer but i always end up with an error message that the node was not found [quote=“spiele-maus, post:1, topic:56523, full:true”]
Godot Version
4.1.2
Question
So im simply trying to start a timer but i always end up with an error message that the node was not found
E 0:00:11:0050 SaveData.gd:85 @ timer_restart(): Node not found: “Timer” (relative to “/root/SaveData”).
<C+±Fehler> Method/function failed. Returning: nullptr
<C+±Quelle> scene/main/node.cpp:1626 @ get_node()
SaveData.gd:85 @ timer_restart()
torch.gd:14 @ _on_area_2d_body_entered()
[/quote]
E 0:00:11:0050 SaveData.gd:85 @ timer_restart(): Node not found: “Timer” (relative to “/root/SaveData”).
<C+±Fehler> Method/function failed. Returning: nullptr
<C+±Quelle> scene/main/node.cpp:1626 @ get_node()
SaveData.gd:85 @ timer_restart()
torch.gd:14 @ _on_area_2d_body_entered()
no it does not, as the the point is that it will only be restet as it is game over when it ends. but i dont see why that would be the issue. afterall the issue that it is not found in the first place, even so its there
The thing is that this is not quite how it should work, as this creates a new timer every time the function is triggered. but what I want is just 1 timer that gets reset every time the function is called, as the goal of the game is to prevent the timer from reaching zero