Hi.
I have following goal:
I wanna check if an event 2 steps infront of the player is passable or not. The tile has an event with multiple pages activaterd by self-switches. If no self-switch is on, then the event has no image, below character and passable. I tested following script:
Problem:
It only works with map items but not with events. They are randomly registered as non-passable. Even if their current state is below character and passable. Can't see a pattern how it registers passability of events. Let's say I push a boulder towards this tile. It will block the boulder but the conditions of passability are met. The boulder just doesn't move away from the player.
Is there an event version for $gameMap.isPassable? Or how can it be solved?
I have following goal:
I wanna check if an event 2 steps infront of the player is passable or not. The tile has an event with multiple pages activaterd by self-switches. If no self-switch is on, then the event has no image, below character and passable. I tested following script:
JavaScript:
// Player faces left
$gameMap.isPassable($gamePlayer.x-2, $gamePlayer.y, $gamePlayer.direction());
Problem:
It only works with map items but not with events. They are randomly registered as non-passable. Even if their current state is below character and passable. Can't see a pattern how it registers passability of events. Let's say I push a boulder towards this tile. It will block the boulder but the conditions of passability are met. The boulder just doesn't move away from the player.
Is there an event version for $gameMap.isPassable? Or how can it be solved?