Space bar won't work

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
thewifitree
Prole
Posts: 32
Joined: Sat Dec 21, 2013 5:16 pm

Space bar won't work

Post by thewifitree »

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
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Space bar won't work

Post by Plu »

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.
User avatar
dusoft
Party member
Posts: 656
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: Space bar won't work

Post by dusoft »

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!
Works for me, maybe you can be more specific during what exact point of game this happens?

Also, check if keyboard ghosting is not related: viewtopic.php?f=4&t=78189&p=169701&hili ... d+detected
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests