- Joined
- May 14, 2007
- Messages
- 36
Oh I got it now that's really bright idea you got there!I took a picture of the map with the size of 1024x1024.
Then i imported the newly created map picture into the map (yeah, an imported file =/ ).
After that i created a dialog with the size of 256x256 and created a dialog item (image) to it with the size of 1024x1024.
The trick i use here is that even though a dialog item is bigger then a dialog, it can not show up outside of the dialog, so you will only see 256x256 of the full 1024x1024 image.
Now you have the actual local minimap, but it will not show up where you are.
So with help of some math and calculations you can make it read your position on the map and show up the right location.
And then ofc, there is the arrow in the center that shows where you are facing. i just anchored it to the center of the dialog and then calculates what direction my unit is facing (required a small amount of calculating becouse the arrow pointing wrong).
And there you go, a minimap that shows your location.
Keep in mind that it cant view any other unit but the unit you choose to display on the minimap with trigger.
I have still not added a feature to make other players appear on the map (i will do so later ofc, but right now it is single player)
By the way, what method did you use to take a screenshot of your map? It seemed to be high detailed. I don't really have an idea to do that.