View Single Post
chandie

JCF Member

Joined: Jan 1970

Posts: 19

chandie has disabled reputation

Mar 22, 2020, 11:11 PM
chandie is offline
Reply With Quote
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