'Action during OPENED state'

def opened(self):

    self.frame_index = 1
    self.image = self.frames[self.frame_index]
    if ((self.contents == 'star') and self.powerup_in_box):
        self.group.add(powerups.Star(self.rect.centerx, self.rest_height))
        self.powerup_in_box = False
