![]() |
fast tile checking?
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?
|
NPC Code:if (onwater(x,y)) set flag; |
does it have to set a flag or can that just be used as a trigger to set something?
|
if (onwater(x,y)) {
do a lot of stuff; lay cookie; lay bag of hell; } |
Quote:
|
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;} |
Quote:
if (playerenters) dontblock; while (!isweapon) { if (onwater) drawoverplayer; else drawunderplayer; sleep 0.05; } |
Quote:
|
Quote:
|
Quote:
|
The war of the greats ^_^ I cant be in it though cuz im not great :(
|
exactly!
|
*throws tiles at liquidice and evtravial*
|
| All times are GMT +2. The time now is 07:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.