This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-01 16:21:30

Ziggy215
Scratcher
Registered: 2010-04-28
Posts: 9

How to Make Ammo Work!!

Create a variable called ammo before you start!!


when (green flag) clicked
set ammo to _____
hide
hide variable Ammo


when ___ key pressed
forever
|if Ammo<1
|stop script
-----------------

point in direction direction of (Gun)
show
repeat until touching edge
|move 10 steps
-------------------------------------

hide
go to (Gun)



When (green flag) clicked
forever
|if key (key to take out gun) pressed
||show variable Ammo
|-------------------------------------------------
|if key (key to shoot) pressed
||change ammo by -1
|if Ammo<1
||stop script
----------------------------------------

Offline

 

Board footer