E
EZTALES
Guest
hey yall,
was wondering how to make this textbox appear when you press a button (Z), and only alowing it once at a time so you can't spam. i was thinking about an alarm but dont know how. help?
code here:
thanks anyone!
was wondering how to make this textbox appear when you press a button (Z), and only alowing it once at a time so you can't spam. i was thinking about an alarm but dont know how. help?
code here:
Code:
CREATE:
showtext =0;
STEP:
if (place_meeting(x,y,obj_player)) && (keyboard_check(ord("Z")))
{
showtext = 1;
}
else
{
showtext = 0;
}
DRAW:
draw_self();
if (showtext == 1)
{
draw_set_color(c_blue);
draw_set_halign(fa_center);
draw_set_font(fnt_textbox_normal);
draw_text(x,y-30," Its your# bookshelf. ")
}