Mr Awesome
Member
Hello
I draw a black screen in my game that covers the entire room and objects to create a curtain effect, which I then went to be removed revealing the room with different objects in different positions.
However, I want there to be a delay between drawing and removing. I realise you can't put an alarm in a draw event (or at least, it's ineffective), but I have also tried a flag to trigger an alarm in the step event but it doesn't seem to work.
Here is my draw event code:
if dark==1{
draw_set_color(c_black);
draw_set_alpha(1)
draw_rectangle(0,0,room_width,room_height,0);
instance_create_depth(486,59,-950,obj_top_hat_face_only)
instance_create_layer(544,288,"instances",ob_pl_UM_glasses)
}
I tried to put a flag at the end of the code (dark2=1) then trigger an alarm in the step event (if dark2=1{alarm[0]=60} but it had no effect.
Any help would be appreciated.
I draw a black screen in my game that covers the entire room and objects to create a curtain effect, which I then went to be removed revealing the room with different objects in different positions.
However, I want there to be a delay between drawing and removing. I realise you can't put an alarm in a draw event (or at least, it's ineffective), but I have also tried a flag to trigger an alarm in the step event but it doesn't seem to work.
Here is my draw event code:
if dark==1{
draw_set_color(c_black);
draw_set_alpha(1)
draw_rectangle(0,0,room_width,room_height,0);
instance_create_depth(486,59,-950,obj_top_hat_face_only)
instance_create_layer(544,288,"instances",ob_pl_UM_glasses)
}
I tried to put a flag at the end of the code (dark2=1) then trigger an alarm in the step event (if dark2=1{alarm[0]=60} but it had no effect.
Any help would be appreciated.