if (damaged == 0) { shaking = 8 flashing = 5 if (myhealth > 50) image_index = 0 if (myhealth <= 50) image_index = 1 if (myhealth <= 0) event_user(1) sfx_stop(sndRobotHit2) sfx_play(sndRobotHit2) }