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
en:tutorials:lifetime [2019/05/30 03:23 (12 months ago)]
127.0.0.1 external edit
en:tutorials:lifetime [2020/05/10 11:21 (3 weeks ago)] (current)
sausage Anim literal added
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 =====
en/tutorials/lifetime.txt ยท Last modified: 2020/05/10 11:21 (3 weeks ago) by sausage