So even if I try with jjPLAYER I can’t make a constant speed change.
I could change the speed like this though, again with onPlayer.
if(play.xPos>27 && play.yPos>43)
if(play.keyRight) {
play.xSpeed = 10;
}
if(play.keyLeft) {
play.xSpeed = -10;
}
play.keyRun = true;
}
But that’s not the exact effect I want. I’d like to make a constant speed up (at least for ten seconds or so) regardless of the player pos
|