counter++; if (counter > 180) { alpha_cycle = (210 - counter) / 30; } else { alpha_cycle = counter / 30; } if ( counter >= countermax ) { room_goto_next(); }