Quasi's Pixel Movement and player coords

Xenphir

Nature's Friend
Veteran
Joined
Nov 20, 2017
Messages
198
Reaction score
133
First Language
English
Primarily Uses
RMMV
Hello! For my game I need to constantly gather player coords and location but using quasi's pixel movement plugin seems to bug out where the player is by 1 tile in both directions or where the player is looking.
 
Last edited:

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
That's probably expected. What would their tile coordinates be if the player is between two tiles?
 

Xenphir

Nature's Friend
Veteran
Joined
Nov 20, 2017
Messages
198
Reaction score
133
First Language
English
Primarily Uses
RMMV
That's probably expected. What would their tile coordinates be if the player is between two tiles?
Well first off I made a mistake. Its Quasimovement, not Galvs. xD Ill change the title.

Well I have an NPC in coords 10,6 on my debug map. I have variables set up for player's x and y, and also variables that change depending on which way player is facing. This might be redundant though, since I am not sure if theres an easier way or a script to grab player info and what they are looking at but this is what I have for now.
5d8dcfb9eb6646c009a017181c784d60.png

My NPC I already checked without pixel movement and it reads fine. He tells me that I am looking at tile 10,6 no matter the direction I face him to speak to him, and he tells me the correct coords of where I am standing.

Up 10,5
Down 10,7
Left 9,6
Right 11,6

This is his only code, just tells me variables which I already know are correct when not using quasimovement.

af5fe425d288b3014a7140952782753f.png

So when I turn quasimovement on he tells me weird numbers. Below I'll write the correct ones for easy reference next to the bad ones he tells me now. Also for all of these he is supposed to be at 10,6 still, but his "location" changes as well. I'd assume because the players coords are off.
I even tried getting the most direct angle not at any weird part ones. So I am standing at the spots normally not like half... idk how to say this xD

When above him facing down (Up)
It is correct. He tells me I am at 10,5 and he says he is at 10,6

When below him facing up (Down)
He claims I am at 10,6 and he is at 10,5 now. So somehow everything moved an entire Y down.?

When left of him facing right (Left)
He is correct in telling me that I am at 9,6 and he is at 10,6.

When Right of him facing Left (Right)
He says I am at 10,6 and he is 9,6. Again moved the entire X over 1 tile.

I can probably edit the variables to simply fix this but I am not sure if it will be a permanent fix, or if it is going to cause even more issues later.

Also I have tried editing the collision box on the event to make him a full tile so it can't be that I'm getting too close I don't think x.x


Up 10,5
Down 10,7
Left 9,6
Right 11,6


EDIT:

I think maybe the problem is that it registers the bottom-left most pixel as the player location instead of in the center. If someone could look at the coding and perhaps tell me if there is any simple changes I could make to it that has it read the player location in a different pixel?
 
Last edited:

aniaaous

lazy potato
Veteran
Joined
Jul 14, 2018
Messages
93
Reaction score
35
First Language
french
Primarily Uses
RMMV
I'm having the same problem have you found a fix yet ?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top