Thread: Tiles
View Single Post
  #3  
Old 05-04-2007, 01:58 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by oo_jazz_oo View Post
Well, I dont want to know if it will block the player, sorry that I didnt explain better. ><
In an npc, it makes its x and y random, and I dont want it on walls, but the level is shaped weird, so doing if (x in | |){ and stuff would be hard to do...
Is there any way to tell if the tile[x,y] are bloxcking tiles? ><
Those functions return true if the tile blocks the player, and in turn the NPC as well. If the tile is a wall, Then it returns true.
__________________
What signature? I see no signature?
Reply With Quote