I need help with making game transitions

E

EmerDev

Guest
Hi there! I'm a experienced drag and drop developer but, I'm new to coding on Game maker studio 1.4. Can anyone please tell me how to do a fade out transition?

Here is what i want;
If (player) on collision with (object) > fade in (go to room game over)

Code I tried to do (but did not work)
{
fade_ready = true;
}

This is how i inserted the code. I did some drag and drop and before the end, I did the code.
(player object) on collision with (enemy object) > (code) > go to room (gameover)

I know i'm new and i should learn more but there isn't anything helpful. I tried to learn (On collision) codes but nothing was usefull. Please help me out, Thanks!
 

TsukaYuriko

☄️
Forum Staff
Moderator
When making fade transitions, I draw a rectangle over the view area with increasing or decreasing alpha. Essentially, it's a combination of draw_rectangle, draw_set_alpha and the view_* set of variables (or cameras in GMS2).
 
Top