Jazz Creation Station Help Destructable scenery |
| Index | |
Destructable scenery
The destructable scenery event is used to create scenery out of
tiles that can be destroyed. The event number for destructable
scenery is 185. The destructable scenery takes 3 parameters, one
of which is unused.
Destructable scenery works like this: You can shoot or attack the
destructable scenery, each time you do damage to it, it
deteriorates. When the destructable scenery is totally damaged,
four piece fly off. Destructable scenery is often used to create
walls that can be destroyed or open up passages to secret areas.
Creating the destructable scenery animating tile
Destructable
scenery uses an animating tile for its frames. We'll use
the example at the right to explain how to create an
animating tile for destructable scenery. This example is
a bouncy-bullet destructable block (this block can only
be destructed by using bouncy bullets). The top image
shows you how this animating tile looks in the animating
tiles view. Now that you're ready, let's get our hands
dirty and show you make that destructable scenery:
|
|
So, this destructable scenery has
two states, the initial state (the bouncy-bullet block) and the
end state (the emtpy block). When the bouncy-bullet block is hit,
it disappears and the bouncy-bullet block will fly off in four
pieces.
You must not forget to set the speed of your animating tile to 0
fps in the animating tiles properties, otherwise the destructable scenery will animate by
itself!
This is generally how you use simple destructable scenery. You
can add more states if you would like to, choose a different
block to fly off, etc. The general rules for destructable scenery
are:
The destructable scenery
event
You create a destructable scenery block by putting the animating
tile for the destructable scenery in a layer and selecting the
destructable scenery event for it. There are 3 parameters to the
destructable scenery event of which 2 are used.
Weapon
You can select a weapon which has to be used to destroy this
destructable scenery. If the weapon is 0, any weapon can be used.
For the bouncy-buller block we use weapon 2 (bouncy bullets). You
can determine which weapon has which number by pressing the keys
"1" through "9" in the game.
SpeedDestr
You can create destructable scenery which can only be destroyed
if you have enough speed for it. This number is a measure for the
required speed. If you set this value to 0, no speed is required
to destruct the block.