K
kassmass
Guest
so i wanted to make a counter for the pointless murders i have commited in my game, and the text doesn`t show up, here`s the code in the create event:
#macro resw 1024
#macro resh 768
display_set_gui_size(resw,resh);
global.kills = 0;
global.killsthisroom = 0;
killtextscale = 1;
and here`s thecode in teh draw GUI event:
if (room != menu) and (instance_exists(o_player)) and (global.kills > 0)
{
killtextscale = max(killtextscale * 0.95, 1);
drawtext(c_black, font1, fa_right, fa_top);
draw_text_transformed(resw - 8 , 12, string(global.kills) + " Bad Guys Killed", killtextscale, killtextscale, 0);
draw_set_color(c_white);
draw_text_transformed(resw - 10 , 10, string(global.kills) + " Bad Guys Killed", killtextscale, killtextscale, 0);
}
can someone help?
#macro resw 1024
#macro resh 768
display_set_gui_size(resw,resh);
global.kills = 0;
global.killsthisroom = 0;
killtextscale = 1;
and here`s thecode in teh draw GUI event:
if (room != menu) and (instance_exists(o_player)) and (global.kills > 0)
{
killtextscale = max(killtextscale * 0.95, 1);
drawtext(c_black, font1, fa_right, fa_top);
draw_text_transformed(resw - 8 , 12, string(global.kills) + " Bad Guys Killed", killtextscale, killtextscale, 0);
draw_set_color(c_white);
draw_text_transformed(resw - 10 , 10, string(global.kills) + " Bad Guys Killed", killtextscale, killtextscale, 0);
}
can someone help?