Instance place

Explanation
Unlike this function will tell you if there would be a collision with obj if the instance that calls the function was placed at position (x,y). So the 'place' where the check is made is all the pixels in the sprite. If any of those overlap a pixel in the other sprite the function return true.

Examples
The following example places the instance exactly against a vertical wall if it would intersect this wall in the next step.

hereIsAWall = instance_place(x +speed,y,obj_impassable); if(speed>0 && hereIsAWall) {     x=hereIsAWall.x-sprite_width; speed=0; } else if(speed<0 && hereIsAWall) {     x=hereIsAWall.x+hereIsAWall.sprite_width; speed=0; }

This code assumes that the origin of the sprite is at (0,0).