if (active && other.state == 23 && other.xVel == 0 && activated == 0) { with (other.id) { state = 60 statetime = 0 } alarm[1] = 120 activated = 1 sfx_play(sndMorphBallSlot) sfx_play(sndAutoadActivate) } if (other.state == 60) { if (other.x > targetx) { with (other.id) x -= 1 } if (other.x < targetx) { with (other.id) x += 1 } }