Bounce Action

image\Action_Animation_Bounce.jpg

The Bounce action will cause the specified object to move around the page (or frame) and bounce off the sides. You can set the angle the object starts to move at, which obviously sets the style of the animation.

Note:
If the object you want to bounce is contained within a Frame object then the object will only bounce around the border of the frame and not the border of the page. You can if you want have a frame bouncing around the page at the same time that an object in the frame is bouncing this can provide some stunning visual effects, for example, a bee buzzing erratically across a page!

Setting up the Bounce action:

1. Add the Bounce action to your trigger, as described in adding actions. The Bounce tab will automatically appear when you add the action.

2. At the top of the Bounce tab is the Object List. Click the name of the object in the list that you want to bounce around the page/frame. By default This Object is selected (see note).

Note:
Only one object can be selected from the Object list. The default option This Object refers to the object in which this action has been placed this option is useful if you want to copy this action to other objects because you do not have to re-select the new object name from the list.

3.  Click on the Around Page/Frame, Up Down or Left Right option in the Presets panel to set the direction the object will move.

Note:
Selecting any of these options will automatically select the continuously option in the Bounce panel of this tab.

4.  Alternatively, click on the angle indicator and drag it clockwise or anti-clockwise in the Initial Direction panel to set an angle for the path the object will take.  

Note:
The degree of the angle is displayed in the angle box beside the angle indicator. You can type an angle directly into this box if required.

5. Click on the Random checkbox if you want Opus to select an angle randomly when the action is triggered.

6. Click on the Once option if you want the object to bounce off one side of the screen before the animation stops.

7. Click on the times box if you want to set a specific number of sides the object will bounce off before the animation stops. Use the spin buttons to increase or decrease the number of times in the box

8. Click on the Continuously option if you want the object to bounce continuously off the sides of the screen without stopping.

Note:
Use the Stop Animation action if you want to stop an object following the path continuously.

Use the slide bar in the Speed panel to increase or decrease the speed of the animation. Move the slider left to make it slower or to the right to make it faster.

Note:
On some systems, larger objects may not animate very smoothly at higher speeds and will jump or jerk too much.

10. Use the At End options to set the position of the object when it completes its movement along the path. There are three options: Stop, Return and Reset. By default, the Stop option is selected.

11. Use the Send "Synchronise to End" trigger if you want to start a Synchronise to Animation End trigger when the object reaches the end of the animation.

12. Click on the Apply button to save your changes.

Note:
A Bounce action is automatically added to an object when you create a Bounce animation using the Animation Wizard. This allows you to change the options you created in the wizard by opening the object’s Actions dialog and changing the options in the Bounce action.

The Bounce action is often used with the Collision Enter and Collision Leave triggers to create interactive games. For example, you can create: a game of asteroids where points are lost every time you hit a moving object; a game of tennis where a bat hits a bouncing ball.

Related Topics:

Using the Animation Wizard

Choosing an Action