hi
iam trying to loop an animation only in certain frames...
i needed to get at least a loop of 15 seconds this could make the character txt file very big
ive tried the looper script but it doesnt have a start frame
iam trying to avoid change the animation to another anim follow and loop it there...
anyone knows if it can be done ?
iam trying to loop an animation only in certain frames...
i needed to get at least a loop of 15 seconds this could make the character txt file very big
anim follow12
loop 0
delay 15
offset 101 190
bbox 0 0 0 0
@script
void self = getlocalvar("self");
if(frame==20){ // set local variable at 1st frame
setlocalvar("Flag" + self,1);
}
@end_script
frame data/chars/3crazyjoe/rise3.gif
@cmd targetPos 2 835 390
@cmd leap 6
delay 9
frame data/chars/3crazyjoe/jump00.gif
frame data/chars/3crazyjoe/jump01.gif
delay 6
frame data/chars/3crazyjoe/roll02.gif
frame data/chars/3crazyjoe/roll03.gif
frame data/chars/3crazyjoe/roll04.gif
frame data/chars/3crazyjoe/roll01.gif
frame data/chars/3crazyjoe/roll02.gif
frame data/chars/3crazyjoe/roll03.gif
frame data/chars/3crazyjoe/roll04.gif
frame data/chars/3crazyjoe/roll01.gif
frame data/chars/3crazyjoe/roll02.gif
frame data/chars/3crazyjoe/roll03.gif
@cmd targetPos 5 700 390
@cmd leap 1
frame data/chars/3crazyjoe/roll04.gif
frame data/chars/3crazyjoe/roll01.gif
frame data/chars/3crazyjoe/roll02.gif
frame data/chars/3crazyjoe/roll03.gif
frame data/chars/3crazyjoe/roll04.gif
delay 15
frame data/chars/3crazyjoe/rise3.gif
@cmd spawn01 "dust" 1 1 1
frame data/chars/3crazyjoe/rise2.gif
delay 150
frame data/chars/3crazyjoe/rise3.gif
delay 12
------------------------------///----------------------------> LOOP begin
frame data/chars/3crazyjoe/taunt01.gif
frame data/chars/3crazyjoe/taunt02.gif
frame data/chars/3crazyjoe/taunt03.gif
frame data/chars/3crazyjoe/taunt04.gif
frame data/chars/3crazyjoe/taunt05.gif
frame data/chars/3crazyjoe/taunt06.gif #25
frame data/chars/3crazyjoe/taunt01.gif
frame data/chars/3crazyjoe/taunt02.gif
frame data/chars/3crazyjoe/taunt03.gif
frame data/chars/3crazyjoe/taunt04.gif
frame data/chars/3crazyjoe/taunt05.gif
frame data/chars/3crazyjoe/taunt06.gif
frame data/chars/3crazyjoe/taunt01.gif
frame data/chars/3crazyjoe/taunt02.gif
frame data/chars/3crazyjoe/taunt03.gif
frame data/chars/3crazyjoe/taunt04.gif
frame data/chars/3crazyjoe/taunt05.gif
frame data/chars/3crazyjoe/taunt06.gif
frame data/chars/3crazyjoe/taunt01.gif
frame data/chars/3crazyjoe/taunt02.gif
frame data/chars/3crazyjoe/taunt03.gif
frame data/chars/3crazyjoe/taunt04.gif
frame data/chars/3crazyjoe/taunt05.gif #42
-------------------------------//--------------------------------> LOOP end
@cmd looper 42 10
delay 200
frame data/chars/3crazyjoe/taunt06.gif
ive tried the looper script but it doesnt have a start frame
void looper(int Frame, int Limit)
{// Loops current animation
void self = getlocalvar("self");
void loop = getlocalvar("Loop" + self);
if(loop==NULL()){ // Localvar empty?
setlocalvar("Loop" + self, 0);
loop = 0;
}
if(loop < Limit){ // loops reach limit?
updateframe(self, Frame); //Change frame
setlocalvar("Loop" + self, loop+1); // Increment number of loops
} else if(loop==Limit){ // loops reach limit?
setlocalvar("Loop" + self, NULL());
}
}
iam trying to avoid change the animation to another anim follow and loop it there...
anyone knows if it can be done ?