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

parent

  1. Nathan Laing

    Legacy GM [SOLVED] Does each instance get it's own list?

    Greetings, The following code is called from say, "object A". There are other objects, and they are children of the object, "obj_parent". Does the code below create a ds_list inside each child object? Or, as I would like to have happen, is only ONE ds_list created inside the calling instance...
  2. N

    Mac OSX Room Parenting question, retro-parenting?

    So my game was created before parenting with rooms was an option. Is it possible to take a pre-existing room and parent it (make it a child) to a newly created Parent Room? Or do I need to rebuild all previously created rooms(stages) in order to make use of Room Parenting now?
  3. A

    GML All children of a parent share the same variables..? [SOLVED]

    I have a variable called hp. It's on the obj_slime create event. The slime is also parented to par_enemy. The problem is that, I have an attacker, and I don't wanna copy huge chunks of code for every single enemy in the game. So I created a parent for all enemies, and the when the attacker...
  4. 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...
  5. S

    How to check how many instances have the same parent?

    Hello. So, in the game I'm working on, multiple characters can occupy the same space at once and when this happens, I place all of them in the corners of the space (Think: Sudoku hints). In order to keep this in a set fashion, I intend to number each instance. However, they are all different...
  6. P

    Tutorials and Global Variables

    Hello. So let me start by saying I am slowly learning more and more. One of the things I have learned is the potential disaster that is Global Variables. I have been following a tutorial on RTS Turn based games. However this tutorial, while teaching me a lot, left me in a hole I can't dig...
  7. 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...
  8. mar_cuz

    GameMaker [SOLVED]Checking for object parent problem

    Hi All, I have an issue checking for object parents. Say I have a sports team, all players have the same parent, oPar_BlueTeam. I'm using point_in_triangle to check for an instance of oPar_BlueTeam to kick the ball to, it only works when one blue team player doesn't have the same parent as the...
  9. 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...
  10. C

    Question - IDE Issues importing Room assets with inheritance

    Hello, I've seen that importing rooms with parenting options to a project still have some issues and don't know if there's a threat about this. If it is the case, please link me to there. Is there a way to import parent and chindren rooms to a project's resource tree correctly? I've tried...
  11. 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...
  12. A

    GML SOLVED Parent object's depth != children objects' depth?

    Hi all, I have a parent object (magic projectile thing that the player can shoot) with some children objects of it and its all working fine, except that I want to make all the children objects have a specific depth that I assumed could be set in the parent object's depth. But when I change the...
  13. David Richard

    Parenting issue

    I know it's a brief title but it's pretty much the problem I have. I read this article which says about nothing about how it works bisides the fact that it's a good idea: https://docs.yoyogames.com/source/dadiospice/001_advanced%20use/more%20about%20objects/parents.html So, being convinced in...
  14. L

    Windows Tower Defense: New Rooms, Multiple Waves, Multiple Paths

    Hey guys! I'm back with another issue. I hope this post is articulate enough and easy to understand. hehe Some context: I'm creating a simple tower defense game, programming for level one is complete, save for a little bit of polishing. Level 1 has three waves of 10 enemies of 3 different...
  15. S

    Unparent an object

    I have an object that is used to decide if an object is solid or not (I don't use the build in solid option) One of my objects is parented to this solid object, but after an animation reached a certain image (image_index = 7) I want my object to unparent, so it isn't solid anymore because the...
  16. R

    Legacy GM [SOLVED] Using collision with parents object

    Hi everyone ! I'm french sorry for my bad english. I just discover this incredible studio, and I'm found of RPG so I try to make one. I know some programming but I don't understand some things in GM mechanics. I made two parents objects, one for ennemies, the other for characters. I made two...
  17. 2

     Suggestion: Show Full Parent Structure

    It used to be in Studio that the parent structure for objects showed beyond the first parent, in Show Information, so you could easily figure out why objects might be acting in unexpected ways, if it was an inheritance thing. Now it shows children (which is fine), but only one parent worth of...
  18. S

    Legacy GM (SOLVED) gamemaker spawning top parent object instead of bottom child?

    does anybody know what could be causing GMS 1.4 to be spawning the top level parent instead of the bottom level child? I actually have the obj parameter as "obj_buster_0" but it spawns a "Entity" object instead here is my code the obj_buster is a child of the Weapon object which is...
  19. K

    Determining an Object's Parent

    Is there a built-in variable or function you can use to determine an object's parent? For example, if I have an object that generates other objects into the room, and I have a number of different enemies (Black dragons, red dragons, shoe salesmen, existential guilt, etc...). If I had those...
  20. C

    Legacy GM Not detecting collision lines for children?

    I have an enemy that will attack if it detects the player through a collision line. If there is a wall in the way it can not detect the player. I would like to add a block that functions like the walls but the enemy can see through it. Is there a way to make this the child of the wall?
Top