Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
First FPS need some help folks!
Old
sjrlax69
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2012
Default First FPS need some help folks! - 04-25-2012, 10:24 PM

I need help with creating a bullet counter, I know its simple but I just can't seem to figure it out. Also can someone help me with creating a shooting method that releases some sort of projectile? Any and all advice is appreciated. Also, I can't upload my file to this site because it is missing a security token
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 04-26-2012, 06:54 AM

Quote:
Originally Posted by sjrlax69 View Post
I need help with creating a bullet counter, I know its simple but I just can't seem to figure it out. Also can someone help me with creating a shooting method that releases some sort of projectile? Any and all advice is appreciated. Also, I can't upload my file to this site because it is missing a security token
The easiest way to use bullets is not to use an actual bullet, but to mess with functions for an "Is in front of gun" function. Using "Is to the left of" And "Is above", you should be able to make a nice one.

As for the bullet counter, just put an increment/decrement method for a world level variable in your shoot method.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
sjrlax69
Junior Member
 
Status: Offline
Posts: 2
Join Date: Apr 2012
Default 04-26-2012, 02:01 PM

Ok, I think I understand what you meen. Now for the bullet counter, how would i have the method reset the bullet count when it runs to zero
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 04-26-2012, 02:52 PM

Quote:
Originally Posted by sjrlax69 View Post
Ok, I think I understand what you meen. Now for the bullet counter, how would i have the method reset the bullet count when it runs to zero
Just add a little if statement to the end of the shooting method "If bulletVar == 0" Then "Perform Reload Method or whatever, then set bulletVar to original count"


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.