E
Ealonex
Guest
When trying to move between rooms with fade, the next room loads before Fade is played.
scr_startmenu:
switch (mpos)
{
case 0:
{
audio_play_sound(snd_menu_select,11,false)
instance_create(view_wview, view_hview,obj_fade);
room_goto(rm_forest)
break;
}
obj_fade's create:
/// fade.
a = 0;
fade = 1;
obj_fade's draw:
/// draw leh ractangol
a = clamp(a + (fade * 0.03),0,1)
if (a == 1)
{
fade = -1;
}
if (a == 0) and (fade == -1)
{
instance_destroy();
}
draw_set_color(c_black);
draw_set_alpha(a)
draw_rectangle(
view_xview[0],
view_yview[0],
view_xview[0] + view_wview[0],
view_yview[0] + view_hview[0],
0,
)
draw_set_alpha(1);
Any way for me to make this work without making any major changes? And If I have to make major changes, is there any way for me to make transitions more flexible like fixed movement in between rooms (such as going in a house actually showing the characters moving in the house before you can actually move.)
Thanks!
scr_startmenu:
switch (mpos)
{
case 0:
{
audio_play_sound(snd_menu_select,11,false)
instance_create(view_wview, view_hview,obj_fade);
room_goto(rm_forest)
break;
}
obj_fade's create:
/// fade.
a = 0;
fade = 1;
obj_fade's draw:
/// draw leh ractangol
a = clamp(a + (fade * 0.03),0,1)
if (a == 1)
{
fade = -1;
}
if (a == 0) and (fade == -1)
{
instance_destroy();
}
draw_set_color(c_black);
draw_set_alpha(a)
draw_rectangle(
view_xview[0],
view_yview[0],
view_xview[0] + view_wview[0],
view_yview[0] + view_hview[0],
0,
)
draw_set_alpha(1);
Any way for me to make this work without making any major changes? And If I have to make major changes, is there any way for me to make transitions more flexible like fixed movement in between rooms (such as going in a house actually showing the characters moving in the house before you can actually move.)
Thanks!