How do i have a gun run out of ammo?
Ok so i want my gun to run out of ammo and then be able to reload!
Could i please get some help? Thanks, GoGators:cool: |
OK, time for a long explanation:
Make a variable that is called "ammo" and set it to whatever you want the ammo clip to be. Then you make a keypress that says "When key is pressed, if ammo>0, do gun fire, then ammo decrement by 1, else do nothing." |
Ok
ok but thenhow would i reload(and get bullets back in my gun)
|
Then you do "When (are you doing a button press to reload or an item that qwhen you get it reloads your gun?) happens, do ammo set value to (however many bullets were in the gun at the beginning)."
|
if i look at my game it would be perfect i have all those implemented.
|
Where
[QUOTE=Watsamax1;22612]if i look at my game it would be perfect i have all those implemented.[/QUOTE]
Where ? :confused: |
All times are GMT -5. The time now is 08:14 AM. |
Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.