This is just test. I used variable isMoving to check move of soul when it touches attack. If you move into blue attack, then you'll take damage If you will not move into orange attack, then you'll take damage Try to die :p To make random choice of color I've used script (random 1-2) and few sprites: orange, blue and empty. Empty is default sprite, blue and orange has chosen for clones. You can look into code to see more. Attacks are very fast, but you can change their speed by slider. P.S. - there is a bug when you take damage if touching borders, then I made a frame for this
Toby Fox for Undertale My mind for isMoving and oldhealth variable idea Music - Stronger Monsters by Toby Fox