Quote:
Originally Posted by DustyPorViva
Well you can run a loop when the player enters a level like...
PHP Code:
function onPlayerenters() {
for (i=0;i<64*64;i++) {
if (tiles[i%64,int(i/64)] == watertilehex) {
this.levelcontainswater = true;
break; // no need to check for more water, right?
}
}
}
|
I guess, but I want it to be a little more simple to blend with the script it'll be put into, so I just want to know how to find a tile "blank"x"blank"