Okay so I'm trying to make it so that if you double press right within 0.3 seconds you start running continuously until you let go of right. My code isn't going entirely as I want it to.. :S For one, the running isn't continuous, so when the timer finishes, it starts walking again. Another is that once you're already pressing right, you only need to press right once again to start running, instead of a quick double press :S. help pls? thanks.
oh and how would one program realistic gravity? the one I've got at the moment only works when they're on the floor. But since I'm hoping to program a 2d fighter, the jump process would need to be interrupted midflight when hit and such, and therefore my current illusion of gravity would not suffice :S thanks again.
Don't mind the random variables and stuff in my code btw. I was just playing around with things.
Help programming running? oh and jumping and gravity.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Citizen
- Posts: 63
- Joined: Sun May 13, 2012 2:49 am
Help programming running? oh and jumping and gravity.
- Attachments
-
- test.love
- lol.
- (1.13 KiB) Downloaded 78 times
Who is online
Users browsing this forum: No registered users and 234 guests