View Single Post
  #4  
Old 05-29-2010, 04:56 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
So there is..

My rough implementation:

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
onSetAni2("sword"060.1"sword1.png");
}

/*
    gani - Animation to draw
    frame - Frame to draw
    frames - The amount of frames to draw
    framelength - Time to draw each frame
    param - Optional animation param
*/

function onSetAni2(ganiframeframesframelengthparam) {
  
// Draw Frame
  
setani(format("%s[%i]"ganiframe), param);
  
// Increment Frame
  
frame++;
  
// Make sure animation isn't done
  
if (frame != frames) {
    
// Schedule drawing of next frame
    
this.scheduleevent(framelength"SetAni2"aniframeframesframelenghtparam);
  }

__________________
Quote:
Reply With Quote