if (obj_heart.x > x) hspeed += 0.1; else hspeed -= 0.1; if (obj_heart.y > y) vspeed += 0.1; else vspeed -= 0.1; alarm[2] = 2;