'Action when in the RESTING state'

def resting(self):

    if self.first_half:
        if (self.frame_index == 0):
            if ((self.current_time - self.animation_timer) > 375):
                self.frame_index += 1
                self.animation_timer = self.current_time
        elif (self.frame_index < 2):
            if ((self.current_time - self.animation_timer) > 125):
                self.frame_index += 1
                self.animation_timer = self.current_time
        elif (self.frame_index == 2):
            if ((self.current_time - self.animation_timer) > 125):
                self.frame_index -= 1
                self.first_half = False
                self.animation_timer = self.current_time
    elif (self.frame_index == 1):
        if ((self.current_time - self.animation_timer) > 125):
            self.frame_index -= 1
            self.first_half = True
            self.animation_timer = self.current_time
    self.image = self.frames[self.frame_index]
