top object

  1. MartinK12

    Question - Code Clicking top object – default behavior in GMS2 with manual depth?

    When u want to click top object and did not set depth of those objects the top object will not be clicked but actually the clicked object will be the first one placed in the room. But when you set depth each of those objects manually the object with the lowest depth will always be clicked. I...
  2. MartinK12

    GML [SOLVED] Cursor that will select top instance of any object on click, GMS2

    I want a cursor that will always select top instance of any object: button, enemy, tower, etc. and then if this instance is selected I just do stuff with it but I just can't get it to work :( I have obj_cursor and in the mouse_global_left_pressed event I try different codes. The result is id of...
Top