Game Development Reference
In-Depth Information
About the Move Behavior:
There are several perimeters to the Move behavior.
Direction: You can either enter a value in degrees or a mathematical equation
to define the direction that the actor will take. For example, 0 will have an actor
move to the East of his point of reference for the movement (see below).
Relative to: This defines the point of reference for the movement. You have
two choices: the actor itself or the scene. Relative to the scene is a movement
in the absolute referential of the scene. If you put 0 relative to the scene, the
actor will move to the right of the scene. If you put 0 relative to the actor, the
actor will move to his right, which could be the left of the scene if the actor is
upside down.
Move type: You can choose between additive or stacked. Additive will sum up
the speed and direction of other Move or Move To behaviors, while stacked
will only apply the speed and direction of the most recent Move or Move To
behaviors.
Speed: You can either put a value or open the Equation Editor by clicking the
little box with the “e” on it to the right of the value box and entering a
mathematical equation to define the speed of the movement
Try to create the Up rule on your own. Here are a few hints:
You can duplicate the Down rule by holding option and
dragging the rule down, renaming it, and changing the
settings. Alternatively, you can select the Down rule, copy
(Command + C), and then paste (Command + V). Another
approach is to create a new rule, as you did for the Down
rule.
The name of this rule is Up.
The condition of the rule is ''Actor receives event'' and the
key is ''up.''
Drag and drop a Move behavior and change the settings as
per the Down rule but with direction set to 90.
 
Search WWH ::




Custom Search