Game Development Community

Showing icons over the units

by Novack · in RTS Starter Kit · 09/08/2007 (12:07 am) · 3 replies

I want to show an icon/bitmap over the squad (or even over a unit) a la Company of Heroes, here are some screenshots:

Here are the icons (the parachute on this case)
img260.imageshack.us/img260/3315/65618132gq0.jpg
The same shot from a different angle, as you can see, the icons are always the same size, and always follow (front to) the camera:
img156.imageshack.us/img156/3295/33973741ka8.jpg

So, I dont now how to begin, initially I have this two problems:
1) how to show that shape, always on front of the camera
2) how to make the shape always on top of a player (or at the center of mass -average distance- , of a group of players)

What would be a good approach to achieving these results?

#1
09/08/2007 (8:02 am)
Possibly this http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12055 ?
#2
09/08/2007 (8:21 am)
Mhh yeah, I think it is! Thanks John, Ive searched about this but cannot find nothing...
#3
09/08/2007 (8:39 am)
Not a problem. And it's not limited to buttons, but can be used for any GUI control. (Chunked Bitmap Control)