B
Beggar Studios
Guest
Hey guys,
I'm creating an rpg in Game Maker Studio 2 and instead of using y = -y for depth I'm using an order table system where every y coordinate has a ds_list assigned to it with every instance associated with that y coordinate stored in it. The order table manager than loops through all these lists and draws the associated sprites in order to create the illusion of depth.
Now, this works perfectly if I just need to draw the sprite assigned to the instance, but now I have an object with a custom draw event where a bunch of dots and lines are drawn. I need this draw event to be excecuted in the order table manager object or else these dots and lines will not have the right depth, how can I do that?
To summarize: how do I excecute a custom draw event within another object so my order table system still works?
I'm creating an rpg in Game Maker Studio 2 and instead of using y = -y for depth I'm using an order table system where every y coordinate has a ds_list assigned to it with every instance associated with that y coordinate stored in it. The order table manager than loops through all these lists and draws the associated sprites in order to create the illusion of depth.
Now, this works perfectly if I just need to draw the sprite assigned to the instance, but now I have an object with a custom draw event where a bunch of dots and lines are drawn. I need this draw event to be excecuted in the order table manager object or else these dots and lines will not have the right depth, how can I do that?
To summarize: how do I excecute a custom draw event within another object so my order table system still works?