Game Development Reference
In-Depth Information
drag and drop a Change Attribute behavior and change ball.Motion.Linear
Velocity.X to random (70,120). Your rule should be similar to Figure 4-8.
Figure 4-8.
Preventing vertical jam
Racket Rules and Behaviors
Drag and drop a Collide behavior into the actor and change the setting to ''actor
with tag:''''Collidable'' as per Figure 4-9.
Figure 4-9.
Collide behavior of the ball
Drag and drop a Constrain Attribute behavior into the actor and change the
setting of Racket.Position.Y to 40 as per Figure 4-10. This will constrain the
racket to its position vertically.
Figure 4-10.
Constrain attribute for racket
Search WWH ::
Custom Search