Xenphir

Nature's Friend
Veteran
Joined
Nov 20, 2017
Messages
198
Reaction score
134
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,177
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
134
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
105
Reaction score
53
First Language
french
Primarily Uses
RMMV
I'm having the same problem have you found a fix yet ?
 

Latest Threads

Latest Posts

Latest Profile Posts

i think this girl has to be my favorite though :)
62702017_JJKXazrs2LInoZh.png
Wouldn't you know it? Every woman that is interested in me on FB is a bot. Maybe I should respond with 000100100011. If u r willing to date women on FB something has definitely went wrong with your life.
Hello world !! I've created a logo design for my game, I'm calling it "Soup Quest" (It was honestly the best I could come up with <:]) !!
[IMG]https://media.discordapp.net/attachments/866542330286178344/1076307540528332830/Soup_Quest_Game_Logo.png?width=473&height=473[/IMG]
P.S. ty to the person who told me about the "purple text not mixing well with dark mode". I'll be careful on using colored text in the future !!
woootbm wrote on TheAM-Dol's profile.
On your last stream you were talking about dev's who remake or remaster the same game rather than moving on. Does this happen a lot? Me and Tony were thinking of covering a game that did this. We're baffled by the idea and wanted to investigate the game.
...Damn it has been a hot minute since I was here. How y'all doing, how's life been?

Forum statistics

Threads
129,745
Messages
1,204,783
Members
170,832
Latest member
GoonyMandolin
Top