if (press_timer <= 0) image_index = d_index; else image_index = d_index + 1; press_timer -= 1;