RobsoN
27th October 2013, 10:12
Hello I just wanted to make fuel qauge for my rocket, using progressbar and scaleOverTime. I wanted to move it by vertical (from top to bottom). This is my code which doesn't work correctly:
player.hud_progressbackground = newClientHudElem(player);
player.hud_progressbackground.x = 420;
player.hud_progressbackground.y = 350;
player.hud_progressbackground.alignX = "left";
player.hud_progressbackground.alignY = "bottom";
player.hud_progressbackground.horzAlign = "fullscreen";
player.hud_progressbackground.vertAlign = "fullscreen";
player.hud_progressbackground.alpha = 0.5;
player.hud_progressbackground.sort = 1;
player.hud_progressbackground setShader("gfx/hud/hud@health_bar.tga", 12 , 196);
player.hud_progressbar = newClientHudElem(player);
player.hud_progressbar.x = 422;
player.hud_progressbar.y = 348;
player.hud_progressbar.alignX = "left";
player.hud_progressbar.alignY = "bottom";
player.hud_progressbar.horzAlign = "fullscreen";
player.hud_progressbar.vertAlign = "fullscreen";
player.hud_progressbar setShader("gfx/hud/hud@health_bar.tga", 8, 190);
player.hud_progressbar.color = (0,255,0);
player.hud_progressbar.alpha = 0.5;
player.hud_progressbar.sort = 2;
player.hud_progressbar scaleOverTime(15, 8, 0);
Any tips please? :)
player.hud_progressbackground = newClientHudElem(player);
player.hud_progressbackground.x = 420;
player.hud_progressbackground.y = 350;
player.hud_progressbackground.alignX = "left";
player.hud_progressbackground.alignY = "bottom";
player.hud_progressbackground.horzAlign = "fullscreen";
player.hud_progressbackground.vertAlign = "fullscreen";
player.hud_progressbackground.alpha = 0.5;
player.hud_progressbackground.sort = 1;
player.hud_progressbackground setShader("gfx/hud/hud@health_bar.tga", 12 , 196);
player.hud_progressbar = newClientHudElem(player);
player.hud_progressbar.x = 422;
player.hud_progressbar.y = 348;
player.hud_progressbar.alignX = "left";
player.hud_progressbar.alignY = "bottom";
player.hud_progressbar.horzAlign = "fullscreen";
player.hud_progressbar.vertAlign = "fullscreen";
player.hud_progressbar setShader("gfx/hud/hud@health_bar.tga", 8, 190);
player.hud_progressbar.color = (0,255,0);
player.hud_progressbar.alpha = 0.5;
player.hud_progressbar.sort = 2;
player.hud_progressbar scaleOverTime(15, 8, 0);
Any tips please? :)