'State where Mario is sliding down the flag pole'

def flag_pole_sliding(self):

    self.state = c.FLAGPOLE
    self.in_transition_state = True
    self.x_vel = 0
    self.y_vel = 0
    if (self.flag_pole_timer == 0):
        self.flag_pole_timer = self.current_time
    elif (self.rect.bottom < 493):
        if ((self.current_time - self.flag_pole_timer) < 65):
            self.image = self.right_frames[9]
        elif ((self.current_time - self.flag_pole_timer) < 130):
            self.image = self.right_frames[10]
        elif ((self.current_time - self.flag_pole_timer) >= 130):
            self.flag_pole_timer = self.current_time
        self.rect.right = self.flag_pole_right
        self.y_vel = 5
        self.rect.y += self.y_vel
        if (self.rect.bottom >= 488):
            self.flag_pole_timer = self.current_time
    elif (self.rect.bottom >= 493):
        self.image = self.right_frames[10]
