/// sc_move_obj_normal(collsion obj);

var _obj = argument[0];

if (place_meeting(x+hspd, y, _obj)) {
  while(!place_meeting(x+sign(hspd), y, _obj))
    x += sign(hspd);
  hspd = 0;
}
x += hspd;

if (place_meeting(x, y+vspd, _obj)) {
  while(!place_meeting(x, y+sign(vspd), _obj))
    y += sign(vspd);
  vspd = 0;
}
y += vspd;
