Collision point

Example
This checks if the object obj_enemy is at position 0,0 and then carries out the code. if(collision_point(0,0,obj_enemy,true,false)) { //execute code }