My hero has an ability that allows them to fly over certain hazards/inaccessible areas. The way it works is that activating the ability turns on a switch that changes the hero's sprite and the passability of the tiles. Now obviously I don't want the hero to be able to land on stuff like water tiles, so I used Region IDs over these areas that make the player unable to land while over them.
Previously this worked fine, but now I'm using a plugin for pixel-based movement (DotMoveSystem) and realized that Region IDs just don't seem to register when the player is only halfway on an ID'd tile.
That means the player can walk into the edges of the impassable areas by simply canceling the flight ability right between a passable and an impassable tile since the Region ID meant to prevent landing doesn't notice the player being partially on it, but the actual impassable tile does, so it becomes walkable until you move away from it. Just making the Region ID'd areas bigger isn't an option either as it breaks some rooms.
Does anyone have a suggestion or alternative on how to go about this?
Previously this worked fine, but now I'm using a plugin for pixel-based movement (DotMoveSystem) and realized that Region IDs just don't seem to register when the player is only halfway on an ID'd tile.
That means the player can walk into the edges of the impassable areas by simply canceling the flight ability right between a passable and an impassable tile since the Region ID meant to prevent landing doesn't notice the player being partially on it, but the actual impassable tile does, so it becomes walkable until you move away from it. Just making the Region ID'd areas bigger isn't an option either as it breaks some rooms.
Does anyone have a suggestion or alternative on how to go about this?