Gun Gui/Script?

so ive always wanted to do this, As a reference im going to use halo 3. look at the gun, it has a bullet gui and some compass or what ever. i was wondering if it is possible to make the gui text and use it for the gun so when the gun reloads it follows the gun not just sits on the screen in one spot, any ideas?

372121--12888--$24211_1282562058.jpg_593.jpg

You could try making the gui text position relative to the gui textures position. so when the gui texture moves the text will as well.

can you explain i dont understand? if i move the gui txt to the guns position it stays there.

Im not to sure how to do it with JavaScript but if you could save the current guitexture position into a variable it would update when the position is changed
then pass the variable into the position on the guitext
and the position on the text will shadow the position of the guitexture(the gun)

var currentPOS : vector2;

guiText.position = currentPOS;

im not sure about the code but the idea will work.[/code]

Use 3d text, not GUI text and attach it to the gun.

i cant use a 3d text as a gui, the bullets dont go down … :confused:

Well either edit the value of the 3D text or destroy it and create another one with different value on the same location.