if (shaking > 0) { shaking -= 1 offx = random_range(-1, 1) } else { offx = 0 offy = 0 } if (flashing > 0) flashing -= 1