Вы находитесь на странице: 1из 24

If we press the

spacebar, it will
shoot like a
machine gun!

Fixing this problem is quite difficult!

Click on Create.

On the Control tab, click and drag


VAR to the Actions window.

For VAR, change the settings to this.


Click on Space.
On the Control tab, click and drag
VAR to the Actions window.

For VAR,
change the settings to this.

To do this, on the Control


tab, click and drag Start of a
Block to the Actions window.
To do this, on the Main1
tab, click and drag Create
Instance to the Actions
window.

Select the Bullet object.

On the Control tab, click and drag


VAR to the Actions window.

For VAR, change the settings to this.


On the Main2 tab, click and drag Set
Alarm to the Actions window.

On the Control tab, click and drag


End of a Block to the Actions window.
To do this, select Add Event,
Alarm,
Alarm0.

On the Control tab, click and


drag VAR to the Actions window.

For VAR, change the settings to this.


13. On the Resources tab,
select Create Sprite.

In the Resources
folder, select spr_enemy1_0.

Select Centre.
Rename it as
spr_enemy1.

Now, on the Resources tab,


select Create Object.
Rename it as obj_enemy1.

Add the Sprite.

To do this, select Add Event,


Create.

On the Move tab, click and drag Vertical


Speed to the Actions window.

Change the settings to this.


To do this, select Add Event,
Step,
Step.

On the Control tab, click and drag VAR to


the Actions window.

Type this.

On the Move tab, click and drag Jump to


Position to the Actions window.

Change the settings


to this.
Select Add Event,
Collision,
obj_bullet.

On the Move tab, click and drag Jump to


Position to the Actions window.

Change the settings to


this.
Select Add Event,
Collision,
obj_plane.

On the Main1 tab, click and drag Destroy


Instance to the Actions window.

Select our plane.

To do this, on the Main2 tab, click and


drag Restart Game to the Actions
window.
Click OK.

Double click on
the room.

Click to add 2 or 3 enemy planes.


14. On the Resources tab, select Create Sound.

Select Load Sound.

In the Resources
folder, go into the
Sounds folder, and
select snd_explosion.
Click OK.

On the Resources tab, select Create Sprite.


Rename it as spr_explosion1.

In the Resources folder, select


new_explosion1.

Select Centre and


click OK.

Now, on the
Resources tab,
select Create Object.

Rename it as obj_explosion1.

Select the sprite.


Select Add Event,
Other,
Animation End.

On the Main1 tab, click and drag


Destroy Instance to the Actions
window.

Click OK.

To do this, double click on the enemy plane object.


Select the bullet.

On the Main1 tab, click


and drag Play Sound to
the Actions window.

Select the sound and click OK.

On the Main1 tab, click and drag


Create Instance to the Actions
window.

Select
the
explosion
object.
Now, click and drag Create Instance
to the top.

On the Main1 tab, click and drag


Destroy Instance to the Actions
window.

Select the bullet object.


15. On the Resources tab,
select Create Sprite.

Rename it as spr_explosion2.

In the Resources folder, select


new_explosion2.

Click Centre and click OK.


Now, on the Resources tab,
select Create Object.

Rename it as obj_explosion2.

Select the sprite.

Click OK.

On the Resources tab, select Create Sound.

Select Load Sound.


In the Resources folder,
go into the Sounds
folder, and select
snd_playerExplosion.
Click OK.
Now,
DOUBLE
click on
obj_enemy1.

Select
obj_plane.

On the Main1 tab, click and drag Play Sound to the


TOP of the Actions window.

Select the sound snd_explosion2.

Click OK.

On the Main1 tab, click and


drag Create Instance to here on
the Actions window.

Select obj_explosion2.
Make sure you select Other and Relative!
Click OK.
Delete Restart
the Game.

DOUBLE click on obj_explosion2.

Select Add
Event, Other,
Animation
End.

On the Main1 tab, click and drag


Destroy Instance to the Actions
window.
Click OK.

Click OK for everything.

Our game is good, but it has no sound when we shoot


the bullet.
Use what you have learnt and
add the cannon sound when
you fire the bullet.
install
double
click Application file
name grade
I am looking for an exciting game
that is interesting to play!

Make sure you follow the


instructions EXACTLY!!!