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