You should learn about state machines (simple) or behaviour trees (not as easy as state machines) for handling player and AI states. That way, you can avoid or atleast reduce the nested mess of many if conditions. They also help remove the need to figure out what the AI is doing based on all of the AI variables because, by being in the state, you implicitly know what it's doing.
| Important Announcement |
| Forum has been made read-only. Please click here for more information or here to return to The Spriters Resource. |
|
Non-Named (More debugging)
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)

