I am doing a Minimap for my Overworld. I have the image of the map set up 2x of the actual map size.
I multiplied the Player X and Player Y by 2 and it works to track my cursor where my player is.
The problem is that I want the Minimap smaller- and if I keep it 1x (same as image size- and not multiply Player X and Player Y) it's too small. So I need something in between.
How would I modify Player X and Player Y variable to be modified by a percentage so that I could get something in between 1x the size and 2x the size? 60-70% of the 2x map would be perfect, but I'm stumped with eventing that and I'm a novice with Javascript.
Any help would be greatly appreciated. Thank you!
I multiplied the Player X and Player Y by 2 and it works to track my cursor where my player is.
The problem is that I want the Minimap smaller- and if I keep it 1x (same as image size- and not multiply Player X and Player Y) it's too small. So I need something in between.
How would I modify Player X and Player Y variable to be modified by a percentage so that I could get something in between 1x the size and 2x the size? 60-70% of the 2x map would be perfect, but I'm stumped with eventing that and I'm a novice with Javascript.
Any help would be greatly appreciated. Thank you!