GML Background transition

JJampion

Member
Hi GMC

im a very beginner so i have no idea how to make a transition
i want to make a splashscreen max 10 sec long with 2 sprites
the first from black to white/transparent and the 2nd from transparent to white
both 5 sec long

here is a example

Code:
▓▒░▒▓
i have just a create event

GML:
alarm[0] = room_speed * 10;
and a alarm event

GML:
room_goto(homescreen);
can anybody help me pls
 
Create Event:
// Set your splash screen
timer = 0
changeSplashScreen = 5 * room_speed
goToNextRoom = 10 * room_speed

Step Event:
timer++
if timer == changeSplashScreen{
// Do your code to change the splash screen
}
if timer == goToNextRoom {
room_goto(homescreen)
}
 
Top