SpaceTraveller97

Villager
Member
Joined
Feb 5, 2021
Messages
21
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
Well, as the title says i want to know if theres is a way to check pixel coords of the map, as the screen one but of the map.
Im making a Game that is mostly played with the mouse but when i scroll the map and click somewhere it's like clicking the same place before it scrolled.
I don't want grid ones because my game is pixel based.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,741
Reaction score
8,519
First Language
German
Primarily Uses
RMMV
unfortunately the map is grid-based, that is why a lot of the pixel movement scripts/plugins have problems with event positions.

you'll basically need to use a full plugin for converting the map to pixel-base, that is not a simple check.
 

ImaginaryVillain

High Cultist of the Sporkle
Veteran
Joined
Jun 22, 2019
Messages
936
Reaction score
5,781
First Language
Absurdism
Primarily Uses
RMMZ
If you make use of QMovement (MV) or Luna QMovement (MZ)... You can call $gamePlayer.px and $gamePlayer.py to get their pixel cordinates on the map. Or of course $gameMap.event(this._eventId).px and $gameMap.event(this._eventId).py for an event.

It calculates it by taking the X/Y of a character and multiplying it by tilesize. Though of course the resultant number is only useful because the plugin itself gives it meaning. Still that's the math if you want to make your own plugin.
 

SpaceTraveller97

Villager
Member
Joined
Feb 5, 2021
Messages
21
Reaction score
1
First Language
Spanish
Primarily Uses
RMMV
If you make use of QMovement (MV) or Luna QMovement (MZ)... You can call $gamePlayer.px and $gamePlayer.py to get their pixel cordinates on the map. Or of course $gameMap.event(this._eventId).px and $gameMap.event(this._eventId).py for an event.

It calculates it by taking the X/Y of a character and multiplying it by tilesize. Though of course the resultant number is only useful because the plugin itself gives it meaning. Still that's the math if you want to make your own plugin.
The script i was looking for wasnt these but i found the one i need in that plugin code, thanks!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,436
Reaction score
1,697
First Language
Dutch
Primarily Uses
RMMV
you can check this plugin (which is a picture coordinates) little
plugin + event setup which can be found [here].

while it uses a bigger picture, you can create a 1x1 pixel or 10x10 and calculate
the way in picels you need.
 

Latest Threads

Latest Posts

Latest Profile Posts

New pet peeve: Telling tech support personnel what something is doing, only for them to tell me (in excessively condescending tones) what it should be doing. Yes, I know what it should be doing, and if it was doing that, I wouldn’t be talking to you and your attitude problem about it right now, would I? >.<
uglywolf wrote on Khulse's profile.
Hello.
The rules I makes pun about on your last thread is about "Verify Files" before anything else, if the stuff comes from STEAM. Which means, if it could be fixed with just that, there is no need to redownload the whole stuff.
But glad the reinstall worked, hope you enjoy it and your days too.
uh oh, I just tapped into a fresh, deep vein of nightmare fuel right here guys:
51F2AC5E-A605-446E-9439-D77AA6A0B0ED.pngAdded console to my content thread here

Forum statistics

Threads
115,429
Messages
1,089,785
Members
150,185
Latest member
DarkPurplePrince
Top