GetWalkableAreaAt (int x, int y)
Returns the number of the walkable area at SCREEN co-ordinates (X,Y).
If there is no walkable area there, or if invalid co-ordinates are specified,
returns 0.
NOTE: The co-ordinates are SCREEN co-ordinates, NOT ROOM co-ordinates. This
means that with a scrolling room, the co-ordinates you pass are relative to
the screen's current position, and NOT absolute room co-ordinates. This
means that this function is suitable for use with the mouse cursor position
variables.
Example:
if (GetWalkableAreaAt(mouse.x,mouse.y) == 0)
Display ("You can't walk there.");
See Also: Hotspot.GetAtScreenXY,
Region.GetAtRoomXY,
GetScalingAt
|