Game Development Reference
In-Depth Information
Figure 2-11. The Create event actions for the standing state object
Figure 2-12. How the Create event might have looked if we had taken less care with names and constants
The Create event of obj_pod_standing now ensures that the character is not moving, which is
basically all that is required for the behavior of this state. There are still a number of state
transitions to handle, but we need to actually create the other state objects in Game Maker first,
otherwise we can't include actions that would change into them (because they don't exist yet).
We won't add any events or actions to the other state objects at this stage, but just create empty
objects for us to continue to work with.
 
Search WWH ::




Custom Search