Game Development Reference
In-Depth Information
The following diagram visualizes the flow of the preceding method:
As you can see, the jump state will always change to FALLING whenever it is set to
GROUNDED . The reason for this is that we want grounded objects like the player's
character to fall down from platforms where they end. There must be a trigger that
tests this event so that the jump state will be in fact permanently changed from
GROUNDED to FALLING as long as there is a collision detected that resets the jump state
back to GROUNDED . Otherwise, the player's character will start to fall down as intended.
 
Search WWH ::




Custom Search