Thread: Onwall
View Single Post
  #8  
Old 08-14-2001, 02:13 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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?)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote