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,888
Reaction score
8,591
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
941
Reaction score
5,789
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,497
Reaction score
1,725
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

I typically ask this on my normal social media channels, but figured there may be good replies here. Anyone got any good horror movie recommendations? I've seen a lot, but I always love getting suggestions! Bonus points if you know which service it is streaming on (in the US) - bring on the spOoooOky!
 After a few distractions (and my annual rough second week of October), I’m getting back on track with my OMGC project.
 Am I overcomplicating it? Yes. Am I going to tone it down? Almost certainly not.
 At least the dialogue stuff is almost done. I need to do the map itself, and then all that’s left is combat.
 Getting there!
Creating 3D CGs for Cutscenes. :kaosalute:

I keep wanting to post every song I make for the game and have to hold back on that because at this rate, I'll have spoiled all the really good stuff lol..
DerniBorges wrote on TSR's profile.
Is there any way this plugin works with the big character, and the QSprite plugin? Using RTP chars, everything works fine, but the big ones, with QSprite, it's like that in the image, it doesn't reflect right. And there is, in the settings, an option to fix it. Thanks.
bug2.png

Forum statistics

Threads
115,902
Messages
1,093,835
Members
151,149
Latest member
kiear12d
Top