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.

[VX] Getting Tile paasage flag [RESOLVED]

In fact, 2 questions...

1/ how to get the Passable flag of a given tile ?

2/ how to identify the Tile on wich the Party is standing ?

The whole question is :
  How do I know the tile on which the party is standing is passable ?
(for those who ask, I went onto that tile via e "Move Event / Jump" command; so I don't have any idea if it is passable or not. And if it is not, I want to re-jump the party back... after taking some damage of course  :thumb: )
 
1. With this method:
Code:
$game_map.passable?(x, y)

2.
Code:
$game_party.x
$game_party.y

To check if the tile where party is, use this:
Code:
if $game_map.passable?($game_player.x, $game_player.y)
  # code here
end
 

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