Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: XVicarious on January 15, 2011, 03:48:45 pm
-
I'm not quite sure if this is the correct place (I'm assuming since it has to do with Axe)...
So I am writing a game and started using pointers to store variables for the enemies only (so far)... I do this and it seems as if all of the enemies (3 of them) are in the same exact place, and on the very edge of the screen (0,0).
Um. If you need more info like the display or the initial variable declaration just ask
-
I would have it display x, y at some location for each enemy. The initialization code would be helpful.
-
You are indeed posting in the correct place, but it's hard to help you if we don't get more information - right now, we only know that your program is failing, but we can't figure out why if we don't know what your code is doing. Could you post the source code?
EDIT: ninja'd again D:
At least our two posts were a bit different...
-
Sure thing. Will edit in a moment. Just need to send over from calculator
.Enemy Declarations
For(X,0,2)
rand^(88)->{X*2+L1}
rand^(25)->{X*2+1+L1}
End
.Enemy Displays
For(Y,0,2)
Pt-On({X*2+L1},{X*2+1+L1},PIC3)
End
-
Your For loop is using the variable Y but you have X as the counter inside the loop.
-
Ahaha. Thanks Quigibo. I'm surprised I didn't see that lol.