the game so far (squiggly mess)
I just started in Gdevelop, and I’m trying to make pong. And I’m trying to setup the ball right now, I set it to randomly go in one of four directions. But it starts squiggling around crazily as if there’s some sort of loop causing to change direction constantly. But I don’t see where in the code that could be happening.
It looks like you need to reset (and pause) the timer. These events are firing constantly because the timer is still > 2 seconds until you reset it.
Side note, you could use RandomWithStep to avoid the whole need for the separate direction variable:
1 Like
thank you, that worked