ForumsProgramming ForumDetecting if space was pressed, but don't repeat the action if it is held down?

2 33543
mightybob
offline
mightybob
360 posts
Peasant

So what I need is in my game you can press space to jump. Except, i don't want them to be able to hold space and keep jumping every time they hit the ground. I need the action to happen once for each time they hit space, but not to repeat every frame. Any ideas?

Thanks!

  • 2 Replies
Showing 196-195 of 2