F
FiftyFive
Guest
Hello i m working on something. When the character falls off the map, the screen will turn black and the game will restart.
(i am begginer so can u guys explain me slowly. Thanks)
DRAW GUI event:
(i am begginer so can u guys explain me slowly. Thanks)
DRAW GUI event:
GML:
draw_set_color(c_black);
draw_set_alpha(image_alpha);
if(obj_oyuncu.y > room_height){
image_alpha += 0.05;
if(image_alpha == 1)
{
game_restart();
}
}
else
{
image_alpha -= 0.05;
if(image_alpha == 0)
{
instance_destroy();
}
}
draw_rectangle(0,0, view_wport*2,view_hport*2,false);
draw_set_alpha(1);