DividingByZero
Member
So, I am using Shawn Spaulding's room transition example (modifed a bunch for my game) - but I am using it in a 3D FPS game (so using projections).
I have the room transitions working great, the only issue is that I can't get the rectangle to be anything but white. Below is an example of what I am doing (mine is modifed, but the parts related to the color and rectangle are the same). In his example, he does it in the draw event on his obj_fade - I had to do it in the draw GUI event for it to show up.
Anyways, so no matter what I set the draw_set_color to, it is always white - but the fade transition and everything else is great. Anyone have any thoughts?
a = clamp(a + (fade * 0.05),0,1);
if (a == 1){
fade = -1;
}
if (a == 0) && (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);
I have the room transitions working great, the only issue is that I can't get the rectangle to be anything but white. Below is an example of what I am doing (mine is modifed, but the parts related to the color and rectangle are the same). In his example, he does it in the draw event on his obj_fade - I had to do it in the draw GUI event for it to show up.
Anyways, so no matter what I set the draw_set_color to, it is always white - but the fade transition and everything else is great. Anyone have any thoughts?
a = clamp(a + (fade * 0.05),0,1);
if (a == 1){
fade = -1;
}
if (a == 0) && (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);