I've been trying to get the Silver Minimap plugin to work using OSX, but unfortunately it just crashes my deployment build non-stop so I thought I would follow a few tutorials about event scripting and make my own full screen map solution.
The map I want the player to see is 180 tiles wide by 150 tiles high
The screen resolution of my game is 1024 x 768
So, how can I get two variables to correspond on screen to the players location using show pictures? It seems every method I try has the little marker way off base, or sometimes even wrapping around the screen ... anybody have a clue?
The show picture command works in pixels, not tiles. Since a tile is 48 x 48, you need to figure out where you want it and multiply the tile number by 48. So if you want the X position to be tile 10, you need the Show Picture X to be 480.
For your situation I think you would need to do something like:
Set Variable Player X = Player's X
Set Variable Player Y = Player's Y
Set Variable Position X = Variable Player's X times 48
Set Variable Position Y = Variable Player's Y times 48
Then, I believe you can set the Show Picture's coordinates to be equal to the Position X and Position Y variables, but I can't access MV at the moment to confirm. (And obviously, you can name your variables whatever you want, I tried to use obvious names.)
edit: Actually just realized this might not be what you need, cause plugin, duh. Nevertheless, it might be helpful because of the needing to multiply by 48 factor. I'd have to see the plugin to know for sure. It's always helpful when asking about plugins to link to it.
I just want to make sure I'm understanding correctly - is the "blip" to show where you are on the minimap?
Also, can you screenshot your event? Not being familiar with this plugin and not being able to access MV atm, I feel like I might be way off on what you are trying to do and what you need to do.
Okay, one guess as to why it's jumping is because in the first screenshot you are using the same variables. So, depending on the cycling, it might be that the Show picture is at times reading that variable before or after you have multiplied it. For instance, is it possible as that cycles, it will catch the variable before being multiplied and then at times catch it after? Trying using a second set of variables for the multiplication part and call those in the Show Picture command.
Also you have multiplied by 4 not 48.
Ah, sorry the multiplying by four was me trying something out ...
Could you show how I would multiply a variable and store that number into another variable? I think I might betting too confused too 😛
Okay, actually, now that I can get into MV, can't do what I was thinking, so, what you have should work, if you multiply it 48.
I tested it a little and sort of got it to work (I had issues that you might now have). It was a bit jumpy, but I'm not sure that much can be done about through eventing, as it's reading the coordinates as multiples of 48 so it's going to jump from coordinate to coordinate.
Could you please post a copy of your script / event?
Thanks in advance.