Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Coordinate Passability Check [RESOLVED]

I'm making a half-evented, half-scripted special item, and I need a little help. What's the coding to check the passability of a set of coordinates? Is it something like
Code:
if passable?(x,y,d)
  ...
end

I know there's prolly a shortcut to checking the passability, so if anyone could tell me the coding it'd be much appreciated.
:microwave:
Regimos
 
Whose passibility are you checking? the player's?
If player's

if $game_player.passable(x,y,0)

end

0 = no direction. You only need to give direction if you are not giving the exact x,y
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top