User Tools

Site Tools


en:tutorials:animation:text_animation

Differences

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

Link to this comparison view

Next revision
Previous revision
en:tutorials:text_animation [2019/05/29 20:52 (5 years ago)] – created sausageen:tutorials:animation:text_animation [2021/04/19 14:25 (3 years ago)] (current) – Removed unnecessary config properties iarwain
Line 5: Line 5:
 Think "Ready Set Go" in racing games or animated text in console games (rogue-likes!). Think "Ready Set Go" in racing games or animated text in console games (rogue-likes!).
  
-To start this tutorial, let's [[en:tutorials:creating_your_own_project|create a blank project using the init script]].+To start this tutorial, let's [[en:tutorials:projects:creating_your_own_project|create a blank project using the init script]].
  
 In the config file, remove the default ''[Object]'' section and everything below it. In the config file, remove the default ''[Object]'' section and everything below it.
Line 17: Line 17:
 [CountDownAnimationSet] [CountDownAnimationSet]
 Pivot         = center Pivot         = center
-Graphic       = @ ; Look in the current section for the Graphic properties (like Text) 
 Text          = @ ; Look in the current section for Text properties, like String. (But no string defined, so starts blank) Text          = @ ; Look in the current section for Text properties, like String. (But no string defined, so starts blank)
 StartAnim     = Ready StartAnim     = Ready
Line 25: Line 24:
 Ready->       = Count Ready->       = Count
 Count->       = Go Count->       = Go
-Go->          = Go 
 </code> </code>
  
Line 34: Line 32:
 </code> </code>
  
-If you're not familiar with the animation system, be sure to have a look at the [[en:tutorials:animation_walkthrough|Animation Walk-through]].+If you're not familiar with the animation system, be sure to have a look at the [[en:tutorials:animation:animation_walkthrough|Animation Walk-through]].
  
 To explain the above, we start with an object called ''CountDown''. The object is empty and only has an animation set which will perform changes on itself. To explain the above, we start with an object called ''CountDown''. The object is empty and only has an animation set which will perform changes on itself.
Line 87: Line 85:
 </code> </code>
  
-To explain the above, ''Ready1'' is the first frame of ''Ready''. It is held for 2 seconds, and shows ''READY!!'' during that time.+To explain the above, ''Ready1'' is the first frame of ''Ready''. It is held for 2 seconds, and shows ''READY!'' during that time.
  
 Once expired, it moves to ''Count1'' to ''Count3'', using ''Count'' to get common properties like the duration of each frame. Once expired, it moves to ''Count1'' to ''Count3'', using ''Count'' to get common properties like the duration of each frame.
en/tutorials/animation/text_animation.1559188368.txt.gz · Last modified: 2019/05/29 23:52 (5 years ago) (external edit)