Need Help setting up my world minimap

Good morning / Afternoon / evening , everyone.

I am in need of your assistance once again.

I currently have a functioning minimap working on a placeholder world map I made for my project

The size of the placeholder map is 200 x 200, where as the minimap picture graphic is 400 x 400 pixels

25.03.2021_00.04.09_REC.png


Someone helped me sort this out and said these were the right ways to make my mini map functioning...


NOW, What I want to do is to make a new minimap, this one adapted to the NEW, larger world map which will be the real one for the game...

The new map size is 315 x 231

How big would the mini map picture would have to be in pixels and what would I have to change in the event above to make this mini map function properly, with the pointer being accurate to the player position?

Any help would be greatly appreciated!!
If you have 400 pixels to represent 200 tiles, that means each tile is 2x2. If you're positioning a 50% size map at 425, 260 I'm assuming you're using a 640x480 resolution rather than 544x416, so the bottom right coordinate will be 625, 460 giving you 15 pixels remaining on the right and 20 on the bottom.
Extrapolating from this, if you have a 315x231 map, taking 2x2 minimap tiles you'll need a 630x462 minimap image. In order to keep the same distance between the bottom and right, you'll need to place it at 310, 229, I believe.

This seems like a metric crapton of screen real-estate for a minimap though, so having 1x1 tiles might be better. In that case you can get away with a 315x231 image, though when that's halved you might end up with some display issues due to it not being an even number.
If the size of the map is 200x200 (Tiles) then the mini-map should be 200x200 pixels, am I right?

Maybe if you double the value of the coordinates to compensate it will work:
Code:
@>Control Variables: [0009:Player X] = Player's Map X
@>Control Variables: [0009:Player X] *= 2
@>Control Variables: [0009:Player X] += Variable [0013:Map_Drawn_X]
@>Control Variables: [0010:Player Y] = Player's Map Y
@>Control Variables: [0010:Player Y] *= 2
@>Control Variables: [0010:Player Y] += Variable [0014:Map_Drawn_Y]

The size of the map does not influence as long as the size of Picture 2 is relative.

To avoid future problems it would be better to use a Plugin.
Let's try this again

This is the current setup

The current map size is 314 x 230

The minimap picture is 628 x 430 pixels

jjjjjjjj.png


25.03.2021_12.54.08_REC.png


This is how it looks, while it works PERFECTLY, I was wondering if we could do it with a smaller minimap display

FOR EXAMPLE: let's say I put a 30% zoom on the "show picture" for the minimap, instead of 50%, what would I have to do to make this work?

What coordinates should I have to put in the variables?

I guess I just want to make the minimap a little smaller so it doesn't occupy half the screen...
you did not do the operation of multiply by 2...

PlayerX*2 = 200%
Will that make it work? I want the minimap to be a little smaller while maintaining the cursor accurate, I will give it a try...

UPDATE

map 1.png


25.03.2021_16.20.43_RECdddddd.png


it DOES work, but what I want is for the minimap to be a little smaller so it won't occupy half the screen. Should I make the PICTURE ITSELF a smaller resolution or should I use the zoom option?? How do I make it so the cursor is accurate to a smaller minimap picture...?



25.03.2021_16.33.54_REC.png

25.03.2021_16.34.24_REC.png

I tried a smaller minimap picture, but as you can see... the cursor doesn't seem to follow... I know I'm doing something wrong I'd like to learn what it is....

The map size is 314 x 230, so kinda following your advice 314 x 230 pixels so it won't occupy half the screen....

But the cursor isn't working yet...
The minimap is related to the map that the player is at the moment, there is no way to fraction pixels ...

Try to increase the size of the map to be relative to the screen size, 408x312, so the minimap would have 816x624 px

The only solution would be a Plugin that generates an image the same size as the minimap with the point marked on an image with a transparent background, so it could change the percentage of both at the same time.

Still, working with Pixels is not a simple matter.
This should work:

minimap.png


You get the player's X coord and divide that by the width of the map, then multiply it by the width of the minimap image file (in my case, it's 254 pixels). Then you divide that by 100 divided by the minimap picture's zoom X property (e.g. if you've got your minimap picture zoomed by 50%, it will divide it by 2—of course, you can just divide it by the exact number instead, but this way it'll adapt if you change the zoom later), and then you add the X pos of the minimap picture (which is picture 1 in my scenario). Repeat the same for the Y coord, except using height, Y and zoom Y.
ddddd.png


Sorry, I tried this but the cursor was nowhere to be seen...
25.03.2021_21.10.10_REC.png
Look carefully at my screenshot.
  1. Set variable to the player's X
  2. Divide by map width
  3. Multiply by image size
  4. Divide by 100 / zoom X
  5. Add the picture's X coord
gggggggg.png

hhhhhh.png


I must be doing something wrong... the cursor is there but is nowhere near the player position.

The minimap picture is indeed 314 x 230 pixels, zoomed in 50% by the picture thing, the map is also 314 x 230 in size....
You need to do $game_map.height for the Y coordinates.

EDIT: Also, the bottom two variable changes should be for Player Y.
I'm sorry, I think I misunderstood, try to do what I did before, but instead of multiplying by 2, you subtract by 2.
The map image must be scaled to 50%.

Tell me the result later.

Maybe this will help you, study some methods shown in this video.
gggggggggggggggggggggg.png


Don't ask how I accomplished this, but changeing up the numbers a bit gave me the best results. Thank you everyone for your help and if I have any trouble i'll be sure to let you all know!!!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-setting-up-my-world-minimap.134718/