Check if player can pass in certain direction, or whether it's occupied by an event

I'm trying to change the player's sprite whenever he's pushing a block.
I'm using QMovement.
SRD's plugin doesn't work for me 🙁
I wrote my own common event that does this, it checks your current X & Y position, then it will check the tile in front of you for a specific region. If that region exists, you will perform a forward jump.
It's much more intuitive than using jump plugins, because you don't have to fill the entire map with regions to block jumping except where you want to let the player jump at.
You could probably do the same thing, except checking for a block, and when there is one, change the player sprite and move the block.
I understand the logic, I just don't know which script call\plugin I'm supposed to use to achieve this.
if it helps, mine used none, because you do not require one to pull this off unless you specifically want to use one related to the plugin you have.
I just don't know which script call\plugin I'm supposed to use to achieve this.
by default, this does not require script calls but is done with eventing - control variable or get location info or a combination of this.

unfortunately there is a chance that the event commands don't work for you due to the changes in movement by the plugin you're using, but you should still try it.
If you're lucky the qmovement plugin has changed the engine in a way that still keeps the event commands compatible - it's worth a test.

if the numbers you gain from control variable (game data section) are no longer compatible with the movement, then you're most likely out of luck and have to drop that idea.
Because while it is possible to check for position on full pixel movement, that is not a simple comparison but requires a range of distances to check for collision. It's impossible to do with a simple script call unless that mathematic had already been programmed in - and if it were available like that it would have been mentioned in the description of the plugin.
@Andar I can't just compare the player's coordinate to the events one cause there are tons of pushable blocks on the map. Well, I could, but I hoped there's an easier, more elegant way of doing that.
Well, I could, but I hoped there's an easier, more elegant way of doing that.
get location info allows you to ask for the ID of an event on a tile - if it returns 0 then there is no event.

if that command is still compatible you can do this even with multiple boulders.
if not, probably no chance.
Oh, you're right :d never used it before. Thanks 😀

Original thread: https://forums.rpgmakerweb.com/threads/check-if-player-can-pass-in-certain-direction-or-whether-its-occupied-by-an-event.133256/