#Event not working
2 messages · Page 1 of 1 (latest)
At the moment you only call move_and_slide whenever you press the button (so you only move this frame).
To move all the time based on velocity you have to put it outside the if statement.
2 messages · Page 1 of 1 (latest)
I am trying to make it so that if the velocity of the ball is 0, then pressing space ("put_into_play") resets the position of the ball and gives it a random speed and direction. Pressing space ("put_into_play") seems to reset the position of the ball but it doesn't do anything other than that.
At the moment you only call move_and_slide whenever you press the button (so you only move this frame).
To move all the time based on velocity you have to put it outside the if statement.