Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
How do i have a gun run out of ammo?
Old
GoGators
Senior Member
 
GoGators's Avatar
 
Status: Offline
Posts: 191
Join Date: Jun 2010
Location: In a house in a city in a state in a continent in a planet in a galaxy
Question How do i have a gun run out of ammo? - 06-22-2010, 08:24 AM

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
  Send a message via Yahoo to GoGators  
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 06-22-2010, 08:34 AM

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."


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Ok
Old
GoGators
Senior Member
 
GoGators's Avatar
 
Status: Offline
Posts: 191
Join Date: Jun 2010
Location: In a house in a city in a state in a continent in a planet in a galaxy
Default Ok - 06-22-2010, 06:40 PM

ok but thenhow would i reload(and get bullets back in my gun)
  Send a message via Yahoo to GoGators  
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 06-23-2010, 12:56 PM

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)."


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
Watsamax1
Senior Member
 
Watsamax1's Avatar
 
Status: Offline
Posts: 155
Join Date: Aug 2009
Default 06-25-2010, 09:15 AM

if i look at my game it would be perfect i have all those implemented.


___________________________________________________

Watsamax Industries
Games Produced for Watsamax Industries Inc. 2010
Watsamax Industries: New York
Watsamax@gmail.com
http://www.facebook.com/profile.php?id=100001253371874#!/profile.php?id=100001253371874&v=wall
http://www.youtube.com/user/Watsamax
___________________________________________________
   
Reply With Quote
Where
Old
GoGators
Senior Member
 
GoGators's Avatar
 
Status: Offline
Posts: 191
Join Date: Jun 2010
Location: In a house in a city in a state in a continent in a planet in a galaxy
Default Where - 07-08-2010, 07:35 AM

Quote:
Originally Posted by Watsamax1 View Post
if i look at my game it would be perfect i have all those implemented.
Where ?


------------------------------------------------------------------------------------------
Signature is under renovation.
  Send a message via Yahoo to GoGators  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.