Use an table?
etc...Code:R["1,1",number]=22) R["2,1",number]=23) R["1,2",number]=16)
Im trying to get a formula to get the X and Y values to equal the numbers inside the square. So I want X2 Y3 to give me 12 and ive tried a ton of things and cant get it to work. My cur one that fails alot is..Code:[21][22][23][24][25] 5 [16][17][18][19][20] 4 [11][12][13][14][15] 3 [ 6][7 ][ 8][ 9][10] 2 [1 ][2 ][3 ][4 ][5 ] 1 X 1 2 3 4 5 Y
Code:SP=(ValX)+(ValY*2)+(ValY*2) - (ValX-1)
Use an table?
etc...Code:R["1,1",number]=22) R["2,1",number]=23) R["1,2",number]=16)
25 of those can be a pain you know :P I was gonna start with 25 entity markers but thought i should use all E2
Bull is right, if you don't put in -1 you get X+Y*Width which when filled in for the first line you get 1+1*5 = 6 so you have 5 memory slots wasted. Arrays using this method still gives 2D and would also have less of a memory footprint than a table with a string index of "1,2"![]()
Doesnt one of the RAMs act like a xy grid? i remember hearing that from somewhere, i never use them
Working on military pack.
Remember
amateurs build the ark....
Professionals build the titanic
I hope this doesnt look like im just giving code out O_o
There's your basic formula, edit as needed ^_^Code:interval(500) while(Y<=Height & ops()<4000) X++ Index=toString(X)+","+toString(Y) R[Index,number]=X*Y if(X>Width){Y++ X=0}
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
Bookmarks