//moveWrap(xwrap, ywrap) if (argument0) { if (x < 0) x += room_width; else if (x > room_width) x -= room_width; } if (argument1) { if (y < 0) y += room_height; else if (y > room_height) y -= room_height; }