Create instance when in a certain area

Hi everyone. In my game, the player has to drop an item when in a specific zone. Is there any way for me to code that the player can drop the item only when in a specific zone,i.e when touching an object? Thanks!
 

Simon Gust

Member
You have your usual collision functions like place_meeting and the such.
Code:
if (place_meeting(x, y, obj_zone))
{
  // drop code
}
or use the collision event with obj_zone and write your drop code there.
 
Top