then you aren't doing it right, because I've got it to work a long time agoThats my problem i get an instant frezze on loading screen
are you using createShader or createRectangle?Can u tell me what im doing wrong?
im using createShader
LightningBackground()
{
self endon("disconnect");
lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");
self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);
self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);
while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2))
{
self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338);
self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338);
self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0);
self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0);
wait 0.05;
}
}
ThxCode:LightningBackground() { self endon("disconnect"); lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ","); self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5); self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5); while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2)) { self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338); self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338); self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0); self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0); wait 0.05; } }
OK , and here is my Functions :
im using create rectangle, can someone help me with that or send me createshader??? please. if so thatll be wonderful <3Code:LightningBackground() { self endon("disconnect"); lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ","); self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5); self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5); while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2)) { self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338); self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338); self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0); self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0); wait 0.05; } }
If you cannot do something as simple as drawing a hud element, please turn away and learn gsc. I've posted the code, you just need to use common sense.im using create rectangle, can someone help me with that or send me createshader??? please. if so thatll be wonderful <3