Help with Evented Minimap

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
241
Reaction score
15
First Language
Portuguese
Primarily Uses
RMVXA
Good Morning / Day / Afternoon / Evening everyone.

I am in need of a little assistance. This time with events.

You see I managed to program this minimap


cursor.png
aa.png
19.05.2020_23.01.01_REC.png
19.05.2020_23.18.06_REC.png

my only problems with this are the following:

1. The minimap is too big and it covers more than half the screen
2. The cursor does work, but when I try to resize the minimap, the cursor goes outside the minimap... (because yes it does follow player x and player y with variables.

I want to place the minimap on the lower right corner of the screen, but I also would like to center the cursor there as well... essencially recreating the minimap in the Final Fantasy games

19.05.2020_15.23.56_REC.png



Can anyone please lend me some assistance?

my map size is 200x200 tiles, if that helps.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
682
Reaction score
446
First Language
English
Primarily Uses
RMVXA
I would do something like this:
Untitled-3.png
You get the player's map X and divide it by the map width, then multiply it by the width of the minimap picture (e.g. in my example, that's 400 pixels). Then you get the player's map Y and divide it by the map height, then multiply it by the height of the minimap picture.

EDIT: This is if the map stays in the top-left corner. If you shift the map around, you need to add the position of the minimap picture to those variables, like so:
Untitled-3.png
 
Last edited:

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
241
Reaction score
15
First Language
Portuguese
Primarily Uses
RMVXA
Thank you very much for this!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top