Alice Community

Alice Community (
-   Questions and Comments (
-   -   Bullets number variable (

simsman2011 08-18-2011 08:00 AM

Bullets number variable
I wanted to make a number variable in a shoot method that expresses the number of bullets.........

here is the method:


I tried: If {Bullets >= 1} except of {Bullets > 1}......
but it still shoots without limits......
please, tell me what can I do?......

legolizard 08-18-2011 01:32 PM

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.