'adjusts frame for animation'

def animation(self):

    if ((self.state == c.FLYING) or (self.state == c.BOUNCING)):
        if ((self.current_time - self.animation_timer) > 200):
            if (self.frame_index < 3):
                self.frame_index += 1
            else:
                self.frame_index = 0
            self.animation_timer = self.current_time
            self.image = self.frames[self.frame_index]
    elif (self.state == c.EXPLODING):
        if ((self.current_time - self.animation_timer) > 50):
            if (self.frame_index < 6):
                self.frame_index += 1
                self.image = self.frames[self.frame_index]
                self.animation_timer = self.current_time
            else:
                self.kill()
