Plugin to change the X Y detection grid?

This is mostly for an issue I'm having with an older plugin that I'm unsure if is being updated anymore. So anyway I'm using a pixel movement script but when its on I can see that the player X and Y don't update properly on the games regular tile basis, therefore breaking my common event warp system that reads player X Y and transports you to another map.

I could use a better supported pixel movement plugin but the one I'm using I really prefer over all the rest I've tried, Especially cause this one has good mouse support
Here it is if its needed: https://forums.rpgmakerweb.com/index.php?threads/altimit-pixel-movement-0-50β.85408/

In the image below the starting point is X:21 Y:14, But you're not actually in X:21 Y:14 unless you're in the red square. The grid for the detection is shifted for whatever reason and I was wondering if it could be corrected with scripts.
Untitled.png
Did you change any parameter in the plugin? Does this happen when you install the plugin fresh? Does this happen when you install this plugin on an empty project?
Just tried with new project and fresh script, Still persists

Here's another example of whats wrong

Because X Y grid or whatever its actually called is shifted down-right 0.5 Its possible for me to enter negative 1
Untitl.png
iii.png
Hm that's odd, I'll take a look at the plugin on my laptop, see if I can find the cause for that issue.
I've been informed on the thread for the plugin that RPGMMV is like this by default, We can only realise its like this when a free movement plugin is on.

I'm still open to getting a plugin that can correct it for pixel movement plugins, if it can be done that is
Ok, I know what's going on. First of all you might want to try installing this plugin below AltimitMovement, so you can see how big the collisions are in your characters and their position.

- PROBLEM -
​
Spoiler
There is no invisible grid. It seems that it's all due to the collision boxes setup. If your current collision box is smaller like the ones on the followers on the image below, since they're smaller, the graphics of the characters will be able to reach a bit out of the screen. And the player's position is checked through the top left point of a 48x48 invisible square (invisible even to this debug), which is what RPG Maker uses to check the characters position, let's say it is the square you see on the editor when you place an event. So, even if you were to stand with the feet of your character on the center of grid cell x1,y1 it will register as x1,y0 because the top left point of the position square is on x1,y0. Hope you were able to understand that.

Ho you can fix this, is by making the collision box as the same size of the Position Box (like you can see on the player character below. My settings were cx=0.5,cy=0.5,r=0.5), this will basically make it so the character's position coordinates align with its collision box. However, this way you may end up losing a bit of the purpose of this plugin, which allows you to get closer to objects and such. If you were to make the collisions this big, it would feel like the player would get stuck on corners and stuff like that even though the sprite didn't look like it was colliding.
Spoiler
afffad.png

Here's a descriptive Image, so you can understand this better:
Spoiler
dddeeee.png

Hope you understood all this, so you can realize that it's not actually a bug, just the way the script was made.
​


-FIX-

​
Spoiler
Now, how would we fix this? Basically the easiest way would be to offset the character sprites to be centered with the point where the position is checked (the place where I drew the cross), that way it should be fine.

I found this pretty simple plugin by Diedrupo that seems to work with Altimit Movement and can offest character sprites.
I edited the plugin to naturally offset it to where you probably want it. So this is plug and play. You can also use notetags to adjust individual events if you want.

Here's the plugin with my edit(place below Altimit Movement):
characteroffsets.js

You might also want to change the colliders values on the Altimit Movement parameters to: <circle cx='0' cy='0' r='0.25' />

​

​

Hope this fixes your probl em 🙂 sorry if I overkilled it with the explanation. But I think it's always better if we know the problem, even if someone gets us the solution.

Cheers!
Thanks so much I'll definitely try this out in a bit
H m m m m m m . . . , So it works as it should when touching warp Coords now. Only issues now are mouse click is offset from where the player will actually go, And transferring can put the sprite itself inside solid tiles making you stuck


Sorry for returning the plate buddy

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-change-the-x-y-detection-grid.117887/