Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Lately I tryed a few times to create characters for some games, but at some certain point (especially when collision detection came in) everything became messy and the interaction between chars, the world and certain items had a lot of bugs. So here is my question, how do you ussualy keep track of actions that your character is allowed to do, or more in general do you have some links / advices how to set up a char efficiantly?

I´m working on a char right now, who should at least be able to run, jump, pick items up and use different fighting animations. Most ideas I came up with until now use some kind of action.priority / action.duration system to determain whats possible and what not, or a "action-manager" which defines for every action what is possible from that action on but it all doesnt work that well together.

share|improve this question
Look at how statemachines work. – Sidar Oct 2 '12 at 6:54
ey thanks mate thats it =) – Jery Oct 3 '12 at 4:55
Looks like you need to solve this question as resolved. I'll add an answer. – Sidar Oct 3 '12 at 8:55
up vote 2 down vote accepted

You should look at FSMs -

Here's a good description for novice programmers:

share|improve this answer
figured that out too, thx though for the input =) – Jery Oct 9 '12 at 17:00
The link says "Page not found" now. Please update it or the answer becomes obsolete. – Krekin Mar 22 at 17:30

As my comment suggested: Look at how statemachines work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.