I'de take a look at the Terran sensor tower, see how that works and duplicate it, sounds like that's exactly what you're after.
EDIT: nm, what you're after is a little more complicated, it seems like a minimap reskin, and then having the sensor tower like ability in an arc, instead of 360.
I made a custom minimap somewhere. I don't remember where. Concept should be somewhat similar.
Anyways, just make a interval that checks units around your hero (radar range), get their coordinates. Minus hero's coordinates X Y from the enemy units X Y. Multiply by the number by 0.25 (or the number that suits the radar size). Add the XY to the origin of your radar. Draw the 2d image for "enemy units" on that location. There you go.
EDIT:
Loop for all enemy in Range
{
TempX = Enemy.X
TempY = Enemy.Y
TempX = Hero.X - EnemyX (maybe plus, just check)
TempY = Hero.Y - EnemyY (maybe plus, just check)
Temp X *=0.25
Temp Y *=0.25
Temp X = RadarPosX + TempX
Temp Y = RadarPosY + TempY
}
Proabably
Or you can save distance and angle between the enemy and the ghost. Essentially the same thing and still have to do the sames tep from Temp X *=0.25 (scaling)
Ok, thats what I was thinking. I made a custom minimap (sort of, it did not look nice at all but it was ok) before, and that is sort of what I did...ok, thank you.
Quick question, if anybody knows, what kind of images can Galaxy editor use? I made a simple radar picture in paint and imported it in several file types....
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
Im wondering how you can make a radar that shows dots on it for enemy units within X range. I know it is possible, I have seen it here
[edit- i took out the link because I found some swearing later in the video, I will attach a pic]
Advice, anybody?
@zeldarules28: Go
I'de take a look at the Terran sensor tower, see how that works and duplicate it, sounds like that's exactly what you're after.
EDIT: nm, what you're after is a little more complicated, it seems like a minimap reskin, and then having the sensor tower like ability in an arc, instead of 360.
I'm not sure, because that just reveals the units on the mini map and the terrain. (I think so..it might work).
Its what I need also...
Hmm.. I think maybe it draws an image on the screen. and then draws the dots with some complicated math formula to get the position...=[
Anybody have ideas?
Ok, thats what I was thinking. I made a custom minimap (sort of, it did not look nice at all but it was ok) before, and that is sort of what I did...ok, thank you.
aha- you edited it thank you.
Quick question, if anybody knows, what kind of images can Galaxy editor use? I made a simple radar picture in paint and imported it in several file types....