Game Development Reference
In-Depth Information
Table 10-13. Off Actor Attributes
Name
Off
Size/Width
100
Size/Height
100
Color/Alpha
0
Storing Information: Defining the Attributes
Create the game attributes as per Table 10-14.
Table 10-14. Game Attributes
Name
Type
Default Value
inMovement
Boolean
0
Speed
Real
1
Rotation
Real
0
Creating Mechanical Movements: Rules and
Behaviors
The basic movement of a metronome is to go back and forth, thus having a
cyclic movement. The speed of the cycle depends on the position of the weight.
You will implement this logic using rules and behaviors.
Metronome Rules and Behaviors
Create a Group and name it ''Position the metronome.'' Drag and drop a Change
Attribute behavior and change metronome.Position.X to 160. Drag and drop a
second Change Attribute behavior and change metronome.Position.Y to 240.
 
Search WWH ::




Custom Search