Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-04-2007, 01:15 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Tiles

Is it possible to tell if a tile is blocking or not?
I searched the wiki, but couldnt find anything.
What I mean is, when you do tiles[x,y], is there any way to tell that that tile is blocking?
Like, if you do tiles[mousex,mousey], is there any way to tell if that tile is a blicking tile? ><
Reply With Quote
  #2  
Old 05-04-2007, 01:20 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
Is it possible to tell if a tile is blocking or not?
I searched the wiki, but couldnt find anything.
What I mean is, when you do tiles[x,y], is there any way to tell that that tile is blocking?
Like, if you do tiles[mousex,mousey], is there any way to tell if that tile is a blicking tile? ><
PHP Code:
onwall(xy)            Tells if a tile blocks you.
onwall2(xywh)     Tells if the tiles in w,h block you
__________________
What signature? I see no signature?
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.