How do i make a radar for my game. the dumb article that says how doesn't even make a radar that works.
All your base are in another castle, take this.
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
27th December, 2007 at 13:06:26 -
What dumb article?
You'll have to work with a fixed point, and a counter that keeps on adding until it reaches 359 (it'll reset to 0 when it reaches 360).You then use sin(degrees) to get a horizontal position out of it and cos(degrees) to get a vertical one out of it, and you multiply this by the radius in pixels.
At least, I think. Anyway, after this you have the central X,Y and the X,Y that keeps floating around this center. You can then draw a line between the two.
That's basically all I know and I never really tried this stuff, so you'll probably get a more detailed explanation from someone else.
There was an extension that did this. I think tigerworks made it. Search for it, you may be able to find it. It was called something like 'radar' or 'minimap' if i remember correctly. It was quite easy to do it with it, if my memory serves me right.
No, it's called "Minimap.cox" and works from MMF 1.2 and beyond, probably to the end of the universe imo. It's a good, solid plugin which is easy to use. So use it!
Sidenote to DaVince: It's shocking to see how hard it is to understand ehat you're talking about after a couple of glasses o' wine, it's like when you see "doctors' and scientists'" blackboards in cartoons. +
Originally Posted by Eternal Entertainment Sidenote to DaVince: It's shocking to see how hard it is to understand ehat you're talking about after a couple of glasses o' wine, it's like when you see "doctors' and scientists'" blackboards in cartoons. +
And also after drinking no wine whatsoever. WHOOSH!!
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
28th December, 2007 at 08:05:48 -
Well, when he said "radar" I thought he meant the radar effect - that thing where you have a green line circling around. I didn't consider that he actually wanted a minimap.
Also, Heart Break Kid sucked, so ignore his articles.