Joypad problem
Posted: Fri Jun 17, 2011 12:34 pm
I'm having trouble with Joypad input.
The player keeps jumping. It's as if I have keydown set to repeat.
How do I tell it to only jump when I tap the button ?
- Code: Select all
A=GetJoystickButton[0];
if(A==1&&canjump==1&&canpress==1)
{
jump
canjump=0;
canpress=0;
}
The player keeps jumping. It's as if I have keydown set to repeat.
How do I tell it to only jump when I tap the button ?