Collision rectangle

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