TheBlackMist
Member
I wanna make it so that Draw GUI Creates a bloody background and it increases in alpha. Can someone help me with that?
Because I just like using the guiSure, but why the GUI ?
Please try to explain a bit more
- it's in the foreground
- it doesn't scale like the rest
/// Initilize values
the_alpha = 0;
/// Draw bloody image
var gui_scale = display_get_gui_width() / view_wview;
draw_sprite_ext(spr_blood, -1, 0,0,gui_scale, gui_scale, 0, c_white, the_alpha)
/// Initilize values
the_alpha = 0;
/// Draw bloody image
var gui_scale = display_get_gui_width() / view_wview;
draw_sprite_ext(spr_blood, -1, 0,0,gui_scale, gui_scale, 0, c_white, the_alpha)
on the createSorry if I didn't explain good enough. joqlepecheur was right I didn't explain good enough. what I meant was.
when another variable number increases for example: kill. then the alpha increases. sorry if I come off as rude!
/// Initilize values
max_kills = 32;
actual_kills = 0;
/// Draw bloody image
var gui_scale = display_get_gui_width() / view_wview;
draw_sprite_ext(spr_blood, -1, 0,0,gui_scale, gui_scale, 0, c_white, actual_kills/max_kills)
THANK YOU!on the create
On the draw guiCode:/// Initilize values max_kills = 32; actual_kills = 0;
there, when actual kills reach max kills the image wont be transparentCode:/// Draw bloody image var gui_scale = display_get_gui_width() / view_wview; draw_sprite_ext(spr_blood, -1, 0,0,gui_scale, gui_scale, 0, c_white, actual_kills/max_kills)