Hey all!
Does anyone know what distinguishes to the game/code the differences between Wall and Roof tiles in terms of passability?
By default, Roof tiles can't be walked on from a ground/grass tile unless it's from below:
(Can't from Above) ______ (Can't from the Side) __ (Can from Below)
_
_
But they can be walked on from any direction if you're already on another Roof tile:
(Can from Roof)
(And, likewise, you can't walk onto a ground/grass tile from a Roof tile unless moving downwards).
Whereas for Wall tiles:
You can't walk on or off them in any direction at all.
But both are represented in the Database with an X for impassability and no other visible signs affecting them.
Is it that Roof tiles are considered passable in the Game_Map isPassable(x, y, d) function from the direction (d) 2 (down) and walls are not, so that's all the game needs to know to distinguish the differences?
But if that were the case then it wouldn't explain how Roof tiles are passable from any direction when going from Roof tile to Roof tile and why that doesn't work for Wall tiles.
So yeah, does anyone know what's distinguishing the different behaviours for Roof/Ground(Grass)/Wall tiles here?
I'm getting really lost I think.
Thanks for any help on the topic!
Does anyone know what distinguishes to the game/code the differences between Wall and Roof tiles in terms of passability?
By default, Roof tiles can't be walked on from a ground/grass tile unless it's from below:
(Can't from Above) ______ (Can't from the Side) __ (Can from Below)
But they can be walked on from any direction if you're already on another Roof tile:
(Can from Roof)
Whereas for Wall tiles:
You can't walk on or off them in any direction at all.
But both are represented in the Database with an X for impassability and no other visible signs affecting them.
Is it that Roof tiles are considered passable in the Game_Map isPassable(x, y, d) function from the direction (d) 2 (down) and walls are not, so that's all the game needs to know to distinguish the differences?
But if that were the case then it wouldn't explain how Roof tiles are passable from any direction when going from Roof tile to Roof tile and why that doesn't work for Wall tiles.
So yeah, does anyone know what's distinguishing the different behaviours for Roof/Ground(Grass)/Wall tiles here?
I'm getting really lost I think.
Thanks for any help on the topic!