• 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!

child

  1. Masstertron

    instance_destroy() doesn't work on parent objects

    Hi everyone! (GMS 2.3) I've noticed that using instance_destroy() doesn't work for children objects. For example, when I use instance_destroy(obj_enemy), my expectation is that all enemies, including child-object enemies (eg: obj_enemy_bird, obj_enemy_fish) are destroyed. What happens is no...
  2. theshaggyfreak

    Windows Events List (child inherit issue)

    I've come across something that I'm not sure if it's by design or if it's a bug. If I had an object as a child of another object that has a particular event, said event does not always show up in the child's event list dialog box right away. If I close the dialog box and reopen it, the event...
  3. M

    child with multiple parents (grouping objects)

    Hi guys I just figured out, that a child object can have just one parent. I would like to group some objects for different collision checks and behaviours, but some objects has to be in multiple groups. How can i solve this? Example (Pseudo code)...
  4. F

    How to override parent create event

    So very simple issue thats more of a coding pet peve than anything. Basically the parent of an object has creation code that is semi long and nothing needs to be changed except for a few variables. So when the child has a create event with "event inherited" even when the code after sets the...
  5. S

    object w parent (child object) not being created

    hi all, im not new to gml but i havent touched it in about a year and im having trouble creating a child object. so i have a parent button object (o_par_button) with two child button objects (o_button_green and o_button_red). im trying to create the child button objects in-game via another...
  6. Yizzard

    GameMaker Question about spawning instances of children

    So I have this system where all items (weapons, consumables, etc.) are children of an overarching obj_Item. It's children are obj_Weapons, obj_Consumables, etc. which in turn are the parents to obj_SteelSword, obj_BucketOGoo, etc. which are actual items. I wanted to have an item bank that...
  7. T

    GML How to share the path function to multiple objects ?

    I want to make a path function in a parent object so the child object could use it to.I've tried many things but it seems the path function could only apply to one object at a time. Luckily i've stumbled upon this tutorial: If you don't have the patient i'll expain: Basically the guy told...
  8. F

    Child Object Switching xscale (-1 and 1)

    I have a parent object which works fine, and created a child object and changed nothing about its code or variables. When I place the child object in a room, it walks normally and then rapidly switches between being left-oriented and right-oriented, when the object would normally jump. The...
  9. C

    GameMaker How can I child one instance to another?

    I am a newb at GameMaker. I have a 2D map which you can move around. I want to add pins to the map, such that when the map moves, the pins stay in the same position relative to the map. By default, the map will move, while the pins remain stationary. I have tried creating a sub-layer of...
  10. P

    GameMaker Struggling with game behavior inconsistencies between objects that share the same code.

    I'm using Game Maker Studio 2 v2.2.1.287. I've included a short video link at the bottom that showcases my problem. I've begun prototyping an "Inventory Simulator" game where the basic concept is you're supposed to pick items up of various shapes and sizes, and fit them into your limited...
  11. A

    GameMaker Reference a parent object without the children?

    Hi all! In my game, the enemies cannot see the player through solid walls (OBJ_Solid) but should be able to see through OBJ_Platform's. I use this to detect the player: if !collision_line(x+4,y-4,Player.x,Player.y,OBJ_Solid,false,true) {//do something} My problem is that OBJ_Platform is a...
  12. K

    How can i know which child is run the code?

    Hi i have a parent object which contains 4 objects as child in onCreate Event of parent i want to define a variable depending on the object name like this: switch (?????????????){ case object_1: var number = 100; break; case object_2: var number = 200...
  13. L

    Sound commands from a parent object

    Good day everyone. There are a number of car models falling under an obj_car parent. Each car object has a passby variable where, on creation, the type of engine sound is determined. In the step event of the parent, the " if !sound_isplaying" code is checked, and the passby variable is looped...
  14. N

    Grandparents checking? (or somewhat)

    Parents checking I know of, but when a parent is a child of another object, I can't check the grandparent. For example: Object: obj_ground | child of: par_ground Object: par_ground | child of: par_solid Object: obj_pipe | child of: par_solid Object: par_solid | child of: **none**...
  15. TibiSoft

    Child-directed declaration - google play - admob

    Hi All, I got a warning from Google that my app violates Primarily Child-Directed Declaration policy because it appears to be designed for use by children (even I did not tick the under 13 age box). In fact they are right, as it is a simple math test app. According to guidance there are plenty...
  16. Dagoba

    Legacy GM Recognize the same child from the same parent

    Hello! In my game, there are 8 different objects with the same parent. I want to know, how to check during collision if the child objects are the same objects. If for example an apple, tomato and pear are par_fruit's children, how to check if apple collides with another apple? I tried this...
  17. A

    Child Instance Destroy When Parent Instance Destroyed?

    I'm working on a new project idea with a limited number of instances off an object at any given time (3). Each of those have 1 separate object instance that they create. All these pairs are the same. So there's 3 pairs of object instances "allowed" No more than 3 pairs can be existing. Some...
  18. N

    Instance Activation Advice (Parent Child?)

    I'm trying to set up a text system for my game which allows the player to be within range of an instance, click on them and then the text box pops up. I have that working but I need some advice/info on the parent/child subject. I understand that a child object inherits all data from the parent...
  19. Gamer (ex-Cantavanda)

    Kids today: I can't stand 'em!

    I really cannot stand how this current generation is behaving... From the youngest age, they're already ruining their lives, always on their smartphones and tablets, back in my day, it was so much better, we did productive things like playing with Pokémon cards (good for intelligence) and yoyo's...
  20. Q

    Determine child object, and adressing child-parent

    [SOLVED] Good day, comrades! In this Video only one plane has the shadow. I want every plane has its own shadow (obj_shadow). 1) How can i determine that Certain Shadow is a child of a Certain Plane ? 2) How can i check Child's variable from Parent object and Parents variable from Child...
Top