View Single Post
  #20  
Old 10-18-2010, 10:48 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Using that method will create that problem, yes. If you look at my demo script you'll notice early on I compare values such as x/y to determine whether the player's animation should be updated. Changes in certain values will force an update regardless, such as the player's position, which is then passed on to the animation function.
PHP Code:
  temp.updateGani player.!= this.oldData[0] ||
      
player.!= this.oldData[1] ||
      (
player.freezetime == -&& this.oldData[2] >=0); 
this.oldData is an array of values saved at the end of the movement to be compared on the next frame.

Only comparing modes is an unreliable method and cripples functionality as eventually you'll notice you can't set animations outside of the default set under their circumstances, even from outside scripts(such as making the player sit with a "/sit" command).
Reply With Quote