Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onwall (https://forums.graalonline.com/forums/showthread.php?t=2257)

Lash 05-06-2001 01:43 AM

what is onwall detection and how do u do it?

FxChiP 05-06-2001 02:57 AM

Depends on how you're using it.

KJS 05-06-2001 03:42 AM

ok...
 
if your making a moving npc you would do something like

if(!onwall(x-1,y)&&dir=1){
x--;
}

this basically says if there is no wall to the left of him and he is faced left then he can go left...



All times are GMT +2. The time now is 04:10 PM.

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