sSpark 0 -1 3 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 ///Initialize image_speed = 0.5; minState = 0; stateID = 0; 1 603 7 0 0 -1 2 self 0 0 1 ///Set visibility based on minState and background color visible = (Controller.state[stateID] >= minState) && (image_blend != background_color); 1 603 7 0 0 -1 2 self 0 0 1 ///Not visible if finished the trials if(Controller.state[0] >= S_HAPPYPIRATE) { visible = false; } 1 603 7 0 0 -1 2 self 0 0 1 ///Change background colour if(visible) { Controller.image_blend = image_blend; if(instance_exists(ColorLimit)) { ColorLimit.image_blend = image_blend; } switch(image_blend) { case c_black: state_set(S_BLACK); state_set(S_LIGHTS); break; case c_red: state_set(S_RED); break; case c_green: state_set(S_GREEN); break; case c_blue: state_set(S_BLUE); break; case c_yellow: state_set(S_YELLOW); state_set(S_FARMERYELLOW, 1); break; case Controller.c_brown: state_set(S_BROWN); break; } audio_sound_gain(audio_play_sound(aColor, 0, false), 0.6, 0); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0 8,8 8,8