#HELP!!!! I cannot understand my code that I have just written
1 messages · Page 1 of 1 (latest)
Use breakpoints to check which lines make the values increase and to what value.
Just place 1 at the beginning of the function. And go line by line with the Step In button of the Debugger
More info on how to use breakpoints:
https://docs.godotengine.org/en/stable/tutorials/scripting/debug/debugger_panel.html#stack-trace
Many of Godot's debugging tools, including the debugger, can be found in the debugger panel at the bottom of the screen. Click on Debugger to open it. The debugger panel is split into several tabs,...
It would let you identify the specific line that is doing what you do not want to.
The link i gave you says how.
Just set them and they activate automatically
You will notice they are working when the game freezes and you are kicked back to the editor to see the results of the breakpoint
You can click continue to resume the game/unfreeze it
The green box specifically says how to set them