finite state machine used in mario like platform game
Posted
by
juakob
on Game Development
See other posts from Game Development
or by juakob
Published on 2011-01-30T19:49:51Z
Indexed on
2011/01/31
15:34 UTC
Read the original article
Hit count: 471
I dont understand how to use a finite state machine with the entity controlled by the player. For example i have a mario(2d platform) i can jump,run,walk,take damage,swim,etc so my first thought was to use this actions as states. But what happen when you are running when you take damage? or jumping taking damage and shooting at the same time?
I just want to add functionalities(actions) to the player in a clean way(not using ifs for all the actions in the entity update)
© Game Development or respective owner