SOLVED How can i change background colour (with codes)

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:
Top