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,152
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
99
Reaction score
44
First Language
french
Primarily Uses
RMMV
I'm having the same problem have you found a fix yet ?
 

Latest Profile Posts

SF_People3_1 added!
index.php

Micro rant. The worst part of working from home when you live with your family is seeing how inconsiderate they are. "Hey, you're sitting in front of your computer, that means you're not doing anything! I want to put the TV at 200 decibels!"

If I was working in the office would you still talking me like that?
It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops

Forum statistics

Threads
118,507
Messages
1,116,479
Members
155,506
Latest member
numagnz
Top