Game Development Reference
In-Depth Information
3.
Update the copy so that it is
go to x: () y: ()
; the slots are filled as shown in the
following screenshot:
4. Then, atach the
go to x: () y ()
block under the
Move Verically
deiniion block.
The resuling custom block should look like the following screenshot:
5.
Start with
when <up arrow> key pressed
. Move to the right via
Move Verically ()
with the value
1
.
6.
Start with
when <down arrow> key pressed
. Move to the right via
Move Verically
()
with value
-1
.
The Spaceship should shoot ammo when the Space bar is pressed. To do so, when the Space
bar is pressed, a clone of the Spaceship Ammo would be created to ly straight up unil it hits
the edge or an enemy sprite.