Controling animation time in Irrlicht

A forum to store posts deemed exceptionally wise and useful
Post Reply
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Controling animation time in Irrlicht

Post by Emil_halim »

Hi All

this time i will show you how to control your time anomation.

suppos your demo consistes of many animations and want to control the order and the duration of each one, so you could spcify when a certain one will start and it's time that will be played.

so i create a TTime class that will allow you to do it.

our demo will create a blank texture and after 2 seconds form running the demo a "Timer1" outlined text will appear and stay for 4 seconds on the screen then it will vanish,and after 4 secode a "Timer2" outlined test will appear and will stay 8 seconds,and after 6 seconds a "Timer3" outlined text will appear and will stay 4 seconds,and finally after 12 seconds a "Ending" outlined text will appear and will stay 2 seconds then the demo will automatically closed.


see it in the wiki

http://www.irrforge.org/index.php/Contr ... n_Irrlicht
Post Reply