![]() |
Bullets number variable
I wanted to make a number variable in a shoot method that expresses the number of bullets.........
here is the method: [IMG]http://img810.imageshack.us/img810/4953/shotty6shoot.png[/IMG] I tried: If {Bullets >= 1} except of {Bullets > 1}...... but it still shoots without limits...... please, tell me what can I do?...... |
This is because every time you call fro your method you create a [I]new[/I] bullets variable. Just make this variable global(make it a world variable) and then use it.:)
|
All times are GMT -5. The time now is 02:11 PM. |
Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.