• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED How can i change background colour (with codes)

A

AlphaBeta1

Guest
I want to make a rainbow effect on the background. How can I?


edit:Okay guys i did it

create event:
Code:
global.TimeToGoUp = true
global.Bgtimer = 0
step event:
Code:
if(global.TimeToGoUp = true and global.Bgtimer = 500){
    global.TimeToGoUp = false  
}
else if (global.TimeToGoUp = false and global.Bgtimer = 0){
    global.TimeToGoUp = true  
}




if(global.TimeToGoUp = true){
    global.Bgtimer ++
}
else{
    global.Bgtimer --  
}




layer_background_blend(back_id,make_color_hsv(global.Bgtimer/2,global.Bgtimer*2,global.Bgtimer))
 
Last edited by a moderator:
Top