View Single Post
Old 20-11-14, 22:06   #1026
Turbo Pascal
Join Date: Jan 2004
Location: Central America
Posts: 111

and I'm building a (adventure) engine too.
I'd like to know, how StateIDs are "calculated" or processed.
E.g. How does the connection between Lara and a switch work?
How does the Gravity processing look like and how do you forbid to crawl while inserting a key?
The concep that handle your problem is called Finite State machine (FMS).

you can read this short article about it:

It is easy to understand and no hard to implement.

Handling gravity is another subject and it is explained in most jumping tutorials.

Good luck.

Last edited by Turbo Pascal; 20-11-14 at 22:08.
Turbo Pascal is offline   Reply With Quote