Testing if a tile is walkable?

Stupidbro

Veteran
Veteran
Joined
Jul 8, 2019
Messages
87
Reaction score
8
First Language
English
Primarily Uses
RMVXA
Hopefully this is as straightforward as it sounds: Is there a way to test (returns true or false) if a tile is walkable using its coordinates on the map?

Like if you had this map and wanted to know if this tile was walkable:
5.JPG
Is there some kind of setup you could do along the lines of:
Code:
    $map_tile(3,4,2).passable?
 

Ghost of Christmas Kloe

The Icecream Princess
Veteran
Joined
Nov 15, 2015
Messages
1,548
Reaction score
957
First Language
English
Primarily Uses
RMMZ
$game_map.passable?(x, y, direction) will check if the tile on a the map it's run on is passable in that direction. To check whether it's passable at all you can check all four directions (2, 4, 6 and 8).
 

Stupidbro

Veteran
Veteran
Joined
Jul 8, 2019
Messages
87
Reaction score
8
First Language
English
Primarily Uses
RMVXA
$game_map.passable?(x, y, direction) will check if the tile on a the map it's run on is passable in that direction. To check whether it's passable at all you can check all four directions (2, 4, 6 and 8).
Cool, thanks.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,633
Messages
1,015,133
Members
137,292
Latest member
inkdrips
Top