How would you put SetGraphicRects in a task and how would you call it? Ive tried a code like this:
task animation1(start,endframe){
let anim = 0;
if(anim<5){SetGraphicRect(0, 229, 34, 300);}
if(anim>=5 && anim<10){SetGraphicRect(34, 229, 34, 300);}
if(anim>=10 && anim<15){SetGraphicRect(68, 229, 68, 300);}
if(anim>=15 && anim<20){SetGraphicRect(102, 229, 102, 300);}
if(anim==endframe){
start = 0;}
if(start>0){
anim++;}}
And when called, it does nothing...any ideas?