Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheRoger on Mon 30/05/2011 16:54:07

Title: Walk in walkable area only
Post by: TheRoger on Mon 30/05/2011 16:54:07
Is it possible to do, that character would only walk if player have clicked ON walkable area and if player have clicked outside walkable area, then character wouldn't move.
Title: Re: Walk in walkable area only
Post by: monkey0506 on Mon 30/05/2011 17:59:50
I don't really understand why you would want to do that, but you could check GetWalkableAreaAt(mouse.x, mouse.y) before processing the click for eModeWalkto (in on_mouse_click).