if (active) { var gridx = round(x / 2) * 2; var gridy = round(y / 2) * 2; draw_sprite_ext(sprite_index, image_index, gridx, gridy, image_xscale, image_yscale, image_angle, image_blend, image_alpha); }