Originally Posted by
Loveboy
Create a small image (with paint or gimp) and just draw there a red point in the middle.
Then set a shader in your script and use for X: 320 Y: 240 (Middle)
You don't have to create a new shader - just use the stock "white" shader and color it in your hud element:
PHP Code:
color = ( 1, 0, 0 );
if( !isdefined( self.laserdot ) )
{
self.laserdot = newClientHudElem( self );
self.laserdot.alignX = "center";
self.laserdot.alignY = "middle";
self.laserdot.x = 320;
self.laserdot.y = 242;
self.laserdot.alpha = .9;
self.laserdot.color = color;
self.laserdot setShader( "white", 10, 10 );
}
If you play with the settings for color, you can have it any color you like.