• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

object_get_parent

  1. AndreLeier

    SOLVED Return the index of a child object

    Hi everyone, I'm making a game and I want to get the individual index of a object, but only if it's a child of the obj_enemy parent. So I came up with this code. // Check if the mouse button was pressed if (mouse_check_button_pressed(mb_left)) { // Get the ID of the object clicked on var...
  2. FeetUpGaming

    Legacy GM (SOLVED) object_get_parent Questions

    When using object_get_parent(object_index) do you put in an instance id or an object index? (Does the object need to exist inside the room) Also (The main question) what happens when the object has multiple parents? Here is the kind of family of the objects i'm using: obj_brickWall < wall <...
Top