I don't see this.stage being defined anywhere, yet it's in two of your conditional checks. So, I took it out, and the effect is a small up-and-down movement.
PHP Code:
function onTimeout() {
if (player.z == 2)
this.air = 2;
if (player.z == 1)
this.air = 1;
if (this.air == 1)
player.z += 0.05;
else if (this.air == 2)
player.z -= 0.05;
else if (this.air == 0 && player.z > 0)
player.z -= 0.05;
setTimer(0.05);
}
Ah, I had this.stage from an earlier version.
Even with that changed, it still won't work.
Ah, I had this.stage from an earlier version.
Even with that changed, it still won't work.
The only other thing I changed was the deployment method. I used onPlayerChats(), because the onWeaponFired() key in being used on Valikorlia, already.
So, it could possibly be a problem with the way you are deploying. Have you tried using onKeyPressed()?
__________________
"We are all in the gutter, but some of us are looking at the stars."
The only other thing I changed was the deployment method. I used onPlayerChats(), because the onWeaponFired() key in being used on Valikorlia, already.
So, it could possibly be a problem with the way you are deploying. Have you tried using onKeyPressed()?
I had put up a check system with setting player's chat after setting this.air , "player.chat = this.air;" seemed to work setting your chat to "0" or "1".