STATE_animation_duplicate

 

 



  Create a new animation that has the same bitmaps and timing as the given animation.
   Returns the new animation. If an error occurred, it will return NULL.
  
   Here are some ideas for using this function.
   You will need this function if you want to use the same animation but with different timing.
   For example, let say that your animation is a tree blowing in the wind. You probably
   have lots of trees and each of them use the same animation. Now if you dont want
   all the trees to move as one then you can do one of the following:
   1) Use STATE_polygon_set_animation_frame() to give each tree a different frame
   Or
   2) Use this function to duplicate an animation and then to give different timing.

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com