'Called when Mario is in a BIG_TO_FIRE state (i.e. when
he obtains a fire flower'

def changing_to_fire(self):

    self.in_transition_state = True
    if self.facing_right:
        frames = [self.right_fire_frames[3], self.right_big_green_frames[3], self.right_big_red_frames[3], self.right_big_black_frames[3]]
    else:
        frames = [self.left_fire_frames[3], self.left_big_green_frames[3], self.left_big_red_frames[3], self.left_big_black_frames[3]]
    if (self.fire_transition_timer == 0):
        self.fire_transition_timer = self.current_time
    elif (((self.current_time - self.fire_transition_timer) > 65) and ((self.current_time - self.fire_transition_timer) < 130)):
        self.image = frames[0]
    elif ((self.current_time - self.fire_transition_timer) < 195):
        self.image = frames[1]
    elif ((self.current_time - self.fire_transition_timer) < 260):
        self.image = frames[2]
    elif ((self.current_time - self.fire_transition_timer) < 325):
        self.image = frames[3]
    elif ((self.current_time - self.fire_transition_timer) < 390):
        self.image = frames[0]
    elif ((self.current_time - self.fire_transition_timer) < 455):
        self.image = frames[1]
    elif ((self.current_time - self.fire_transition_timer) < 520):
        self.image = frames[2]
    elif ((self.current_time - self.fire_transition_timer) < 585):
        self.image = frames[3]
    elif ((self.current_time - self.fire_transition_timer) < 650):
        self.image = frames[0]
    elif ((self.current_time - self.fire_transition_timer) < 715):
        self.image = frames[1]
    elif ((self.current_time - self.fire_transition_timer) < 780):
        self.image = frames[2]
    elif ((self.current_time - self.fire_transition_timer) < 845):
        self.image = frames[3]
    elif ((self.current_time - self.fire_transition_timer) < 910):
        self.image = frames[0]
    elif ((self.current_time - self.fire_transition_timer) < 975):
        self.image = frames[1]
    elif ((self.current_time - self.fire_transition_timer) < 1040):
        self.image = frames[2]
        self.fire = True
        self.in_transition_state = False
        self.state = c.WALK
        self.transition_timer = 0
