Quote:
Originally Posted by oo_jazz_oo
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.