Actor DMG Flash / Overlap-Collide
Hey guys! I have a two part question:
First: I have an actor set to take dmg when it overlaps or collides with an enemy. I also changed it's self.color.blue to 0, and self.color.green to 0 making my actor turn red when overlapping or colliding. It then returns to normal when not overlapping or colliding. I would like to make it flash quickly between red and normal instead of staying constantly red when overlapping or colliding. How can I do this? I've been playing with a timer, but I can't figure out what goes where.
Second: My actor stops taking dmg if I stay overlapped or collided with the enemy actor. I'd like my actor to take dmg every 1 second it overlaps or collides, and if possible I'd like that dmg to line up with the red flash previously stated.
Any help would be great. Thanks!