Just writing to let you all know something that most of you might have already have known, which I didn't have a clue about.
When writing any program for the XB Compiler (Senior_Falcon's) ...
If you're using an array for a map, say we call it DIM MAP(24,32) so that's the entire screen map ....
And we have enemies that use something like this
DIM EX( 8 ),EY( 8 ) .... This is Enemy X position and Enemy Y position for 8 enemies.
We then think, or well I thought, that it would be perfectly reasonable to do this:
120 IF TICKER=8 THEN 100
130 IF MAP(EX(TICKER),EY(TICKER))=1 THEN BLAH BLAH ....
The whole point is, we can't do this, we CAN in XB but the Compiler hates it. So there's an answer. We have to use simpler variables within the Array, such as this:
1000 A1=EX(TICKER) :: A2=EY(TICKER) :: RETURN
So that we can address it simply like this;
130 IF MAP(A1,A2)=1 THEN BLAH BLAH blah ....
So if any of you have been pulling your hair out with the compiler it's good to know that it can't handle an Array within an Array. Or at least the one I'm using hates that. lol. So there ya go.
Edited by Retrospect, Fri Oct 5, 2018 1:42 AM.