Pages: 1
Topic closed
answer subject!
Offline
Make a variable called "ammo" (the name doesn't matter, so call it whatever you want). Then make a script like this:
<when green flag clicked>
<set{ ammo }to( 20
NOTE: you don't need to set it to 20. That number is the amount you start with.
Then, in the script for shooting, insert this:
*shooting script*
<change{ ammo }by( -1
Now, surround this block around the shooting and ammo changing script:
<if><not><( <{ ammo }> <=> 0 )> >>
*scripts here*
<end>
That way it won't shoot when you're out of ammo.
Last edited by hmnwilson (2008-09-26 18:47:04)
Offline
never mind I figured it out myself. thanks anyway!
Offline
Topic closed
Pages: 1