Thread: Timeout problem
View Single Post
  #3  
Old 03-06-2009, 11:23 PM
Novice Novice is offline
Developer
Join Date: Dec 2008
Posts: 90
Novice is an unknown quantity at this point
Send a message via MSN to Novice
Quote:
Originally Posted by LoneAngelIbesu View Post
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.== 2)
    
this.air 2;
  if (
player.== 1)
    
this.air 1;
  if (
this.air == 1)
    
player.+= 0.05;
  else if (
this.air == 2)
    
player.-= 0.05;
  else if (
this.air == && player.0)
    
player.-= 0.05;
  
setTimer(0.05);

Ah, I had this.stage from an earlier version.
Even with that changed, it still won't work.
Reply With Quote