Space bar won't work
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 32
- Joined: Sat Dec 21, 2013 5:16 pm
Space bar won't work
Whenever I run the game I'm working on at random points the jump button won't work. I can't find the reason for this in the code. Please help!
- Attachments
-
- hells parkour.love
- (73.36 KiB) Downloaded 143 times
Re: Space bar won't work
I'm fairly sure that there's some sort of edge condition where your player can become grounded but the player.canJump flag isn't properly set back to true. Consider printing it's value to the screen somewhere and check whether it always returns back to true as soon as you expect the player should be able to jump again.
Re: Space bar won't work
Works for me, maybe you can be more specific during what exact point of game this happens?thewifitree wrote:Whenever I run the game I'm working on at random points the jump button won't work. I can't find the reason for this in the code. Please help!
Also, check if keyboard ghosting is not related: viewtopic.php?f=4&t=78189&p=169701&hili ... d+detected
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests