Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function longJump()
- if not isDoingBannedStuff and isRunning and
- inputs.state[1].altjump == 1 then
- if isLeft then
- player.runKeyPressing = false;
- addSpeed = player.speedX
- player.leftKeyPressing = false;
- player.speedX = 0
- Audio.playSFX(1);
- player.speedX = addSpeed - 10
- for k=1,5 do
- player.jumpKeyPressing = true
- end
- else
- player.runKeyPressing = false;
- addSpeed = player.speedX
- player.rightKeyPressing = false;
- player.speedX = 0
- Audio.playSFX(1);
- player.speedX = addSpeed + 10
- for m=1,5 do
- player.jumpKeyPressing = true
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement