Quote:
Originally posted by WanDaMan
I use it for weapons where you have to be on specific tile(s).
It goes like:
Or put all the tile values in a variable to make it easier to add and read.
|
What I usually do with checking if the player is on specific tiles is that i make an array:
NPC Code:
beontiles={0x0,0x1,0x10,0x1FF};
and this in the checking:
NPC Code:
if (tiles[playerx,playery] in beontiles) {
//Do stuff
}