Right now, the fade in and fade out effects don't cover the entire screen. But I think the main issue is that we remove the black screen before reaching the 'objDoor'. We should wait until we're at the indicated spot before removing it.
A fix that I found useful in control_cutscene object draw GUI event to cover the entire screen:
//Draw fade in and out effects
if (fade_out == true) {
draw_set_alpha(timer);
draw_set_color(fade_color);
if (view_enabled) {
draw_rectangle(0,0,display_get_gui_width(),display_get_gui_height(),false);
}else{
draw_rectangle(0,0,room_width,room_height,false);
}
}
if (fade_in == true) {
//show_debug_message(string(fade_in))
draw_set_alpha(1-timer);
draw_set_color(fade_color);
if (view_enabled) {
draw_rectangle(0,0,display_get_gui_width(),display_get_gui_height(),false);
}else{
draw_rectangle(0,0,room_width,room_height,false);
}
}
I use display_get_gui_width() and display_get_gui_height()