Hello! I'm making my first, very basic game. I started using Godot just yesterday, so, sorry if this is a stupid question
I have (hopefully) attached a picture of the problem.
So, the last statement should only happen if 'seconds' is negative, which works the first time, but then suddenly it accepts positive numbers for a short while, e.g. 1.82 has 'entered' the statement, 1.95, 1.88 and so on.
I may just be overlooking something obvious, but for now I'm confused. I feel like that just shouldn't be possible, given the 'seconds < 0'
A little more elaboration:
I hope the gif above works. Basically the character move as intended first time, but then for a few seconds moves in all sort of directions. This, I believe, is because the last if-statement is run multiple times, making the first statement run multiple times as 'seconds' is reset to 2. But maybe that isn't even the case??
Thank you!