T
Theghost
Guest
Hi guys,
I've encountered a problem where my rectangle doesn't show up on the screen. It is not my first time using the draw event but it is still not working. could you please help me for a second?
I've encountered a problem where my rectangle doesn't show up on the screen. It is not my first time using the draw event but it is still not working. could you please help me for a second?
Code:
//create event
draw = false;
fade = 1;
//step event
if(collision_circle(x,y,50,obj_player,false,false) && keyboard_check(ord("E")))
{
draw = true;
fade -= 0.01 ;
global.realisticTimerH = 7;
global.realisticTimerM = 0;
with(obj_timer_and_stamina_counter)
{
stamina = 160;
}
}
//draw event
if(draw == true)
{
draw_set_color(c_white);
draw_rectangle(0,0,1024,768,false);
}