User Tools

Site Tools


en:tutorials:lifetime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:lifetime [2019/05/30 03:23 (15 months ago)]
127.0.0.1 external edit
en:tutorials:lifetime [2020/06/09 03:33 (2 months ago)] (current)
sausage
Line 73: Line 73:
  
 Run that and as soon as the appearance sound is finished, the object'​s life is over. Run that and as soon as the appearance sound is finished, the object'​s life is over.
 +
 +
 +===== Anim Lifetime =====
 +
 +For an object, using the ''​anim''​ literal means that when all animations have finished playing on your object, then the object will be destroyed.
 +
 +<code ini>
 +[Object]
 +Graphic ​        = @
 +Texture ​        = logo.png
 +SoundList ​      = @
 +Sound           = appear.ogg
 +Pivot           = center
 +AngularVelocity = 18
 +FXList ​         = FadeIn # ColorCycle
 +LifeTime ​       = anim
 +</​code>​
 +
 +Check out the [[en:​tutorials:​main#​animation|animation tutorials]] to learn about the animation system and give the ''​anim''​ literal a try. 
  
 ===== Child Lifetime ===== ===== Child Lifetime =====
Line 150: Line 169:
 ==== Conclusion ==== ==== Conclusion ====
  
-There'​s a lot of combinations and scenarios that be covered with multiple lifetimes. I can see sound, fx and track being extremely useful. ​You can get more info on usage at: [[en:​orx:​config:​settings_structure:​orxobject|orxOBJECT structure]] ​+There'​s a lot of combinations and scenarios that be covered with multiple lifetimes. I can see sound, fx and track being extremely useful.
  
 +===== See also =====
 +  - [[en:​examples:​objects:​kill_parent_object_when_children_die|Having a Parent Object die after all children have died]]
 +  - [[en:​orx:​config:​settings_structure:​orxobject|orxOBJECT structure]] ​
en/tutorials/lifetime.1559186606.txt.gz ยท Last modified: 2019/05/30 03:23 (15 months ago) by 127.0.0.1