Page 1 of 1

Efficient use of state mahcines

Posted: Wed Jul 28, 2010 8:26 pm
by teckygamer
Hi im new to irrlicht and was wondering the best way for screen transition. Splash->Menu->Game(Several Sub States within the game)

The way i wish to implement it is: Creating a state machine, which contains custom nodes one which renders 2d image, another with the game and the menu, using transitions to move between the screens. Each element would be somewhat independent of each other. I am assuming that what is display can be controlled by changing what state will be rendered in the run.

What are your views on this design idea, will it be expandable. Thanks in advance.

Posted: Thu Jul 29, 2010 2:36 am
by lymantok
Hi,

I use this awesome statemachine code from Vitek:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=19949

Enjoy!