Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
4  
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
add comment

2 Answers

up vote 2 down vote accepted

You should look at FSMs -

Here's a good description for novice programmers: http://blog.manuvra.com/modeling-a-simple-ai-behavior-using-a-finite-state-machine/

share|improve this answer
    
figured that out too, thx though for the input =) –  Jery Oct 9 '12 at 17:00
add comment

As my comment suggested: Look at how statemachines work.

share|improve this answer
add comment

Your Answer

 
discard

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.