I am making a 3rd person hero fighting map with WAS movement. Because the map is 3rd person, It can be hard to navigate the map, and I had to disable the UI to make it look good. I know there is a way to make a custom minimap, I've seen it before in map.. I'll see if I can find the link. I would prefer the map to be in a dialog, but if not thats no biggie, so long as its on your screen. Anybody have any ideas?
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Woa..Im going to try that right now, but..man that sounds confusing. Also, I need it for 9 players at once. Im not sure if this would work.
Edit-
If anybody wants to help, basiccly it gets the players cordinates (X and Y) and then sets the maps offset to
-((X/map_width)*100) and -((Y/map_height)*100) maybe I got got some signs mixed up somewhere. The X position works ok. Unfortunately, it shows the bottom left in you are in the top left. Wierd...Anybody have advice?
Edit Edit- also, how to I make it so the part of the map that hangs over the edge of the dialog is cut off?
I dont think you saw my above post. It works, it just does not cut off the edge of the map hanging over the edge and it shows the wrong Y coordinate. Ex Im in top left, the map shows bottom left. Mostly I need to know how to cut off the parts hanging of the edge of the dialog.
I need the image to be cut off once it overlaps the edge of the box. (The image is like 1500 in size so its preety big.)
for correct coordinates you must modify the variables with *-1 or give a fix start value. Because this usage of Dialogs is very unusual i dont know a easy way to fix coordinates. You can also change the image point ( right , center, left...) in the dialog this will change the result too. I self are always confused with the coordinates, play trial and error, a solution is a matter of time.
Do you REALLY create an image for a Dialog? No Screen Image with id or so!
My Images for a pecific Dialog are automatic cut at the edge.
See the RED Image over the Portrait? I Have a Dialog in the correct soize of the Portrait 152x152 the border is a second dialog the red Image for this dialog comes from the button but its invisible outside the dialog.
edit- oh you are right, it did cut off at the border. it was jsut a little bit over the edge. but I have a new problem (I know, sorry).
The mimimap has a big black border on it which is messing up my coordinates and stuff. Maybe I can offset the thing by 100 or something to make up for that. I offset it by -300 but whever the player is near the edge of the map, its mostly all back. Is there any way to edit the minimap? Even when I only include the playable map area within the math, it still does not look right...
first: do you want a minimap that only shows a small part of the entire map and is moving itself with the player in the center or a minimap that shows the entire map and the players position?
Im interested in a full view map or not full with sidebuttons to scroll.
My personal idea is a camera change in a higher perspective and use the buttons to change the position for the camera But i fear it can be nasty because doodads visiblity or something but its a way (a way in my head) ;)
Im interrested in a map that shows a close up portion of the map that follows the player around. I got that, but its just offset badly and it shows the black borders whnever you are anywhere near the edge of the map. A map just like THIS- http://www.sc2mapster.com/maps/orpg-starcraft-universe/
but of course, that is your map so..I would assume you know how to do it =]
:[ Im impatient... I will use my mind powers to make you log back in and tell me how to make a map....>.< RRRRRR!!!!....now i'll wait and see if it worked.
I am making a 3rd person hero fighting map with WAS movement. Because the map is 3rd person, It can be hard to navigate the map, and I had to disable the UI to make it look good. I know there is a way to make a custom minimap, I've seen it before in map.. I'll see if I can find the link. I would prefer the map to be in a dialog, but if not thats no biggie, so long as its on your screen. Anybody have any ideas?
like this? [url]http://www.youtube.com/watch?v=8ihUAIy3p4A[/url]
that looks like an image rather than a minimap. I can't see the representation of any unit on that minimap.
I'd be ok with something like that if it scrolled along to show the portion of the map you were in. Is that possible?
edit- this http://www.udmod.com/showthread.php?652-First-Custom-UI
I think a Minimap without real Enemys etc. ... is very easy.
Create a Dialog
Create a Image for this Dialog
The Image is an Image of your Map
Because the Image can be greater than the Dialog a change in the offset can change the visible area.
Make a loop
check your position coordinates
modify them to a integer and multiplies when needed and save them in 2 variables
use the variables as the offset coordinates of the image
destroy the dialog
create the dialog
voila visible area has changes
100% simply Triggereditor =)
Woa..Im going to try that right now, but..man that sounds confusing. Also, I need it for 9 players at once. Im not sure if this would work.
Edit- If anybody wants to help, basiccly it gets the players cordinates (X and Y) and then sets the maps offset to -((X/map_width)*100) and -((Y/map_height)*100) maybe I got got some signs mixed up somewhere. The X position works ok. Unfortunately, it shows the bottom left in you are in the top left. Wierd...Anybody have advice?
Edit Edit- also, how to I make it so the part of the map that hangs over the edge of the dialog is cut off?
An Image for a specific Dialog is ALWAYS only Visible in the DIALOG Window, over the edge ist automatic invisible.
With 9 Player i have no experience. My idea is like
Start a Timer "Refresh" continued 0.1 seconds or so
Trigger 1
Event: Whenever Timer "Refresh" elapsed
action: Create a Modal Dialog with (200,200) right top
Create a image for Dialog (2000,2000) center of Dialog wit offset (variable x, variable y)
Hide Background (because its your border and the image will overlap it always for a border make a second Dialog greater than the first)
Show Dialog (because is standart not visible)
variable MAP = last created Dialog
Trigger 2
Event:
Whenever Timer "Refresh" elapsed
action:
Variable x = position x
variable y = position y
modify variable x (mulitplikator must be tested for good start result and correct change)
modify variable y (mulitplikator must be tested for good start result and correct change)
by every refresh the position will be refreshed and used are ne new offset, I build with this system HP Bars like "Bossbars"
I dont think you saw my above post. It works, it just does not cut off the edge of the map hanging over the edge and it shows the wrong Y coordinate. Ex Im in top left, the map shows bottom left. Mostly I need to know how to cut off the parts hanging of the edge of the dialog.
I need the image to be cut off once it overlaps the edge of the box. (The image is like 1500 in size so its preety big.)
@zeldarules28: Go
for correct coordinates you must modify the variables with *-1 or give a fix start value. Because this usage of Dialogs is very unusual i dont know a easy way to fix coordinates. You can also change the image point ( right , center, left...) in the dialog this will change the result too. I self are always confused with the coordinates, play trial and error, a solution is a matter of time.
Do you REALLY create an image for a Dialog? No Screen Image with id or so! My Images for a pecific Dialog are automatic cut at the edge.
See the RED Image over the Portrait? I Have a Dialog in the correct soize of the Portrait 152x152 the border is a second dialog the red Image for this dialog comes from the button but its invisible outside the dialog.
edit- oh you are right, it did cut off at the border. it was jsut a little bit over the edge. but I have a new problem (I know, sorry).
The mimimap has a big black border on it which is messing up my coordinates and stuff. Maybe I can offset the thing by 100 or something to make up for that. I offset it by -300 but whever the player is near the edge of the map, its mostly all back. Is there any way to edit the minimap? Even when I only include the playable map area within the math, it still does not look right...
@zeldarules28: Go
no normal is the image
border option is forread special border textures you can find in sc2
is your Dialog the orignal minimapsize also a lot smaller than the map image?
Picture is german version =/ but so its my solution
minimaps are quite easy.
first: do you want a minimap that only shows a small part of the entire map and is moving itself with the player in the center or a minimap that shows the entire map and the players position?
@Mille25: Go
Im interested in a full view map or not full with sidebuttons to scroll. My personal idea is a camera change in a higher perspective and use the buttons to change the position for the camera But i fear it can be nasty because doodads visiblity or something but its a way (a way in my head) ;)
Im interrested in a map that shows a close up portion of the map that follows the player around. I got that, but its just offset badly and it shows the black borders whnever you are anywhere near the edge of the map. A map just like THIS- http://www.sc2mapster.com/maps/orpg-starcraft-universe/ but of course, that is your map so..I would assume you know how to do it =]
:[ Im impatient... I will use my mind powers to make you log back in and tell me how to make a map....>.< RRRRRR!!!!....now i'll wait and see if it worked.
I just enabled the UI, never mind then.