Quote:
Originally posted by ownerofbabylon
say for mining or fishing u just want the weapon to fire on a certain block of area. Thats what I mean
|
Well for that you jus wanna use board[index] to tilecheck....someone check my figures on this cause I dont got my notes on hand, and I almost never use board...but it goes like this (I think)
board[x + y*64] = bx + by*16
x and y are is the loc you want to check, and bx and by are the x and y values of the tile it returns (on the tileboard on the bottom right of the level editor)...I forget the math too...but you can use a formula to pull bx and by out of the responce it gives you...
(someone post the math?)