Game Development Community

SpeedOmeter arrow

by Associa · in Torque Game Engine · 10/05/2007 (12:51 pm) · 1 replies

Hi, I'm kinda new to this and wanted to use the speedometer GUI in a game I'm making.

It works just fine, the problem is the arrow. I'd like to put an image rather than using that rectangle.

Anybody can help me with this. My idea was to somehow glue the image on top of the rectangle but I don't know how.

Thanks

#1
10/11/2007 (6:34 am)
I would do it using a texture that is an arrow in a square covered with alpha (see through). The texture is then rotated about its center (this constrains you somewhat for real world speedometer designs).

To rotate a texture in the UI, search for various "Compass" resources. They give examples and a primitive function (openGL only, IIRC) to do the rotation.