View Full Version : red dot
ORDI
28th March 2014, 22:26
hello everybody
someone know how make a red dot to center of the screen
for when i am in the options player, i clik 1.red dot and a red dot is placed to center
someone can show me the script to create that? i tried to search on google but i did'nt find.. it mark for a red dot on the compass
xfire: ordi37zk
Loveboy
28th March 2014, 22:37
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)
Tally
29th March 2014, 07:44
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:
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.
serthy
29th March 2014, 10:36
or as an alternative to a shader use the localized string &"."
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.