Workshop - Step 5

# Step 5:
Definition of animations

| Overview
| Realization

Overview

### Overview

We now want to define all animations, we will later on use within the level. At least we must define one or more animation(s) for shooting towards a wall. These animations are played back, when you shoot and hit a wall.

Realization

### Realization

We have defined three texture files for use in this level. The dialog Textures shows this third texture file. There you can see the animations phases. You reach this dialog when selecting Windows and Textures of the menu in the Main window.

Now we want to define at all three animations, one for a rotating red key, for a two-step switch and one for a shot, which hits a wall.

All animations for the level must be defined in the dialog Animations. You reach this dialog in the Main window using the menu entries Edit and Animations.

Using the vertical scrollbar you can select between 128 possible animations. When the dialog appears, you see the first animation (of 128). Please redefine this first animation using the values give in the screenshot above.

- We set an internal caption to Red key.
- Each animation phase has the dimension of 16 to 20 pixels.
- For the red key there are 4 phases.
- The animation is played back with a speed of 10 phases per second. For that we set the number of VBL to 4.
- All positions of the four pictures must be set. The pictures remain on the third texture file (index 2). Define the X and Y offsets according to the screenshot.

Now please click on the button Preview - and you can test this animation. In the reference you can read more about this new dialog window.

Change again to the dialog, in which you define your animations. Scroll the vertical scrollbar to the second animation.

For the second animation you specify the values according to the two screenshots above. This second animation will be a switch with two states. Using the button Preview you can again test the new animation.

Ok, change again to the dialog, in which you define your animations. Scroll the vertical scrollbar to the third animation. The values for the third animation you see in the next screenshots.

Now you have defined three animations, which we can use in our level. Close this dialog window using the button OK.

Back | Home | Info | Concepts | Workshop | Reference | Next