if (global.interact == 0 && con == 0) { dir = 1; if ((x + 58) < (obj_mainchara.x + 18)) dir = 0; con = 1; }