View Single Post
  #7  
Old 09-07-2013, 04:50 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
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.1temp.<= temp.framestemp.i++) {
    
temp.anim.addSprite(temp.i"PARAM1"003232"");
    
temp.anim.addRotateEffect(temp.itemp.r);
    
temp.+= temp.rinc;
    
temp.anim.setFrameSprites(temp.i-10, {{temp.i00}});
  }
  
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.
Attached Files
File Type: gani rotatetest.gani (2.2 KB, 218 views)
__________________
Quote:
Reply With Quote