Sunday, 26 September 2010

Radar

I took a break from preparing my character for animation to do a bit of coding. One of the many small tasks on my list of things to do.

I've added the radar which works along side the compass.



It has all the features you would expect including colour coding for friend or foe and markers for your mission goal. The dots vary in size depending on how far away the other character is.

It took a bit longer than expected to code. Mainly just tweeking to get it to look the way I wanted. I did have a rooky mistake that wasted an evening. At one point everything was always at the same point and no matter what I did it stayed there. Turned out I had cast the result of some floating point maths to an integer!

2 comments:

Anonymous said...

I've read the last 3 pages of blog posts, and I must say, I'm very impressed. Especially the with the editor, it's almost like Unreal Engine 2's editor :).

Great job!

John C Brown said...

Thanks. I have spent a lot of time in the Unreal Editor in the past. My code's not even close but the essentials are there. I also used to Mod UT2003 and 2004. It it my experience with Unreal scripts that made me want to create my own game.