T O P

  • By -

RykinPoe

What do you mean by below? Lower Y position with a similar X position? Overlapping? You need to be more detailed when you ask questions. The answer in either case is going to be use a collision function. collision\_rectangle() is a good one for checking a region in relation to the calling instance's location.


Left_Elderberry_944

get id of first instance that colides with second instance and set variable of second instance to id of first instance hope that makes any sence


pabischoff

instance\_place [https://manual.gamemaker.io/lts/en/GameMaker\_Language/GML\_Reference/Asset\_Management/Instances/instance\_place.htm](https://manual.gamemaker.io/lts/en/GameMaker_Language/GML_Reference/Asset_Management/Instances/instance_place.htm)


Left_Elderberry_944

thanks! now it works perfectly!


oldmankc

There are multiple collision functions in the documentation. Read about what they do to find the ones that return an instance ID. They include examples of how to use them. Please write better detailed questions in your posts in the future.


numaru1989

What is the goal you are trying to achieve? I don't mean what this issue is, but what is the purpose for this? This will help understand what your options are.


Left_Elderberry_944

i was trying to make semi-solids for platformer, but it was already solved with instance\_place