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 Posts

Latest Profile Posts

Was stressing about this plugin earlier, but pretty happy with how its looking now! Purple makes it pop more too!! :)
A friend requested me to do a pfp for his twitch channel, so far he approved one of my sketches, so going to digital now. The style he's looking for is quite different from my usual, hopefully I can get it right... :kaoback:
I am so hyped! A new post update and im anxious to see reactions..eeeeeeee
When a youtuber plays your project or game made by you using MAKERs, you will just be awe struck

Forum statistics

Threads
105,478
Messages
1,014,005
Members
137,117
Latest member
Deli
Top