back to the original page

5. Create an explosion

Create effects when enemies etc. explode
Keep the project file created in the previous tutorial open

Creating an Explosion Sprite

Create a new sprite and name it 'BOMB'
Register img_bomb01.bmp from the resource folder
No pertinent judgment is required


Switch to the Edit Animation tab and create an animation
Uncheck if the loop is checked
If you specify the animation number in this case instead of the pattern number, the animation will be played


Add 11 animated frames, enter 1-11 in the pattern number and 2 in the number of frames


Play the preview and check the animation
(It will also play in a loop with no loop setting)

Creating an Explosion Character

Select the enemy (aerial objects) to type
Set the pattern number to -1 (it is a negative number, so it will be the animation number)
Register sprites and scripts

Creating an Explosion Script

Edit the script you just created
Place the control category Passage and Disappearance in the task "0:Main"
Switch to the number of frames for the transit time wait item and enter 22, which is the length of the animation


Now the animation will disappear once it has played out

Register as default explosion

Save and close the sprites, characters and scripts you have created


Open the game settings and click on the Specify Defaults tab
Register the BOMB you just created by clicking on the default explosion in it... in it to register the BOMB you just created

Test play and see if the enemies explode

Test-play to make ENEMY-A appear as in the previous enemy creation and destroy the enemy with a shot
If the explosion appears, it is a success!

Back to top of page