MV Quxios QMovement

Hi!

I have a problem with the QMovement plugin from Quxios. My character has a collider that takes up the entire torso and legs. The head has no collider.

Now when I do the XY query and calculate a region ID from it my error comes up.

As long as my character is standing exactly on the tile, the XY coordinates of the player are correct. Also the Region ID.

However, if I go for example only a little bit upwards, the hair of the game figure sticks out on the next tile. Now my character has the region ID of the tile on which only the player's hair is located.

Especially in mini-games, I need to know exactly which tile the character is on.

Can anyone help me further?

Thanks a lot!
My character has a collider that takes up the entire torso and legs. The head has no collider.
Can I ask why you put such a big collider? Putting it on the feet is more than enough.
I dont know, but my guess is...
is this maybe a Math Rounding Problem?
You could find out by testing if the same happens not only for the UP but also the LEFT direction.
First of all, thank you very much for the answers! 🙂

I had an idea this morning and was right, just tested it.

The position is calculated from the upper left corner. And it is also only a few pixels with which the position is calculated.

Here times a 48 tile.

48.jpg


The position is calculated using the small red corner point. So not all positions are 100% correct, only just when running up it is particularly noticeable.

In the end you would only have to find the calculation point in the script and add about X+24 and Y+48 to get the point down in the middle.

Does anyone know the script well enough to do this?

EDIT:

colliderInfo.png

_px, _py that's the problem.

@Kato-A It is almost as big as the original collider. The differences are tiny. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/quxios-qmovement.152883/