I want to make it so that after every certain time (like a second or half a second, whatever I want), I have an opportunity to perform a certain action, in my case call the damage function. How can this be tested?
This design coped with its “test tasks”, and I didn’t see the need to make a timer node, since I didn’t know how to track every second anyway. If you know how to track, show me, I’ll rewrite it for the godot timer
My solution:
Replace the regular timer with a tick timer.
Set the number of ticks of the object, the base time of one tick.
Start the timer at a time equal to the base time of one tick and make a check, if there are still ticks, then take away one and start the timer again and so on until the ticks run out.