This is how I would do it.
Generate the GANI:
PHP Code:
function onCreated() {
temp.anim = new TStaticVar();
temp.anim.join("gani");
temp.anim.setSingleDir(true);
temp.anim.setLooped(true);
temp.anim.setContinuous(true);
temp.frames = 20;
temp.rinc = (pi * 2) / temp.frames;
temp.anim.frames = new[temp.frames];
for (temp.i = 1; temp.i <= temp.frames; temp.i++) {
temp.anim.addSprite(temp.i, "PARAM1", 0, 0, 32, 32, "");
temp.anim.addRotateEffect(temp.i, temp.r);
temp.r += temp.rinc;
temp.anim.setFrameSprites(temp.i-1, 0, {{temp.i, 0, 0}});
}
temp.anim.savegani("temp/rotatetest.gani");
temp.anim.destroy();
}
Using:
http://forums.graalonline.com/forums...hp?t=134261809
Significantly more reliable than GANI script. Attached the output.