'Makes Mario invincible on a fixed interval'

def hurt_invincible_check(self):

    if (self.hurt_invisible_timer == 0):
        self.hurt_invisible_timer = self.current_time
    elif ((self.current_time - self.hurt_invisible_timer) < 35):
        self.image.set_alpha(0)
    elif ((self.current_time - self.hurt_invisible_timer) < 70):
        self.image.set_alpha(255)
        self.hurt_invisible_timer = self.current_time
