PDA

View Full Version : fast tile checking?


Solareon
08-05-2001, 11:35 AM
do any of you have a code snippet to do a really fast tile heck to see if a tile is water or not? and then set a flag?

grim_squeaker_x
08-05-2001, 06:02 PM
if (onwater(x,y)) set flag;

Solareon
08-05-2001, 08:06 PM
does it have to set a flag or can that just be used as a trigger to set something?

Slaktmaster
08-05-2001, 11:01 PM
if (onwater(x,y)) {
do a lot of stuff;
lay cookie;
lay bag of hell;
}

SkooL
08-05-2001, 11:57 PM
Originally posted by Slaktmaster
lay bag of hell;There are no spaces in items lain. :rolleyes:

CrazedMerlin
08-06-2001, 12:40 AM
you can also do the bridges like on graal2001 so you can go under them in watter and on them on land like
if (playertouchsme&&(onwater)) {dontblock;
drawoverplayer;}
else
if (playertouchsme&&(!onwater)) {dontblock;
drawoverplayer;}

zokemon
08-06-2001, 03:42 AM
Originally posted by CrazedMerlin
you can also do the bridges like on graal2001 so you can go under them in watter and on them on land like
if (playertouchsme&&(onwater)) {dontblock;
drawoverplayer;}
else
if (playertouchsme&&(!onwater)) {dontblock;
drawoverplayer;}
what??? ether way it would be over plaer noits like this;

if (playerenters) dontblock;
while (!isweapon) {
if (onwater) drawoverplayer;
else drawunderplayer;
sleep 0.05;
}

CrazedMerlin
08-06-2001, 04:03 AM
Originally posted by zokemon

what??? ether way it would be over plaer noits like this;

if (playerenters) dontblock;
while (!isweapon) {
if (onwater) drawoverplayer;
else drawunderplayer;
sleep 0.05;
} speak english

LiquidIce00
08-06-2001, 04:09 AM
Originally posted by CrazedMerlin
speak english

learn how to script

CrazedMerlin
08-06-2001, 04:34 AM
Originally posted by LiquidIce00


learn how to script learn how to make a good playerworld.

ownerofbabylon
08-06-2001, 06:27 AM
The war of the greats ^_^ I cant be in it though cuz im not great :(

entravial
08-06-2001, 01:46 PM
exactly!

Slaktmaster
08-06-2001, 03:36 PM
*throws tiles at liquidice and evtravial*