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):
//--------------------------------------------------------------------------------------------------------------------------
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):
//--------------------------------------------------------------------------------------------------------------------------
GML:
// Enemy1 is in group " obj_parent_deadlyObject" and in the group " obj_parent_giveItemWhenDestroyed"
// Enemy2 is in group " obj_parent_deadlyObject"
// Enemy3 is in group " obj_parent_deadlyObject" and in the group "obj_parent_glowingObject"
// obj_player
if (place_meeting(x, y, obj_parent_deadlyObject)
{
//.... checks collision for deadly objects
// Player dies
}
with (obj_parent_glowingObject)
{
gpu_set_blendmode(bm_add)
draw_self()
gpu_set_blendmode(bm_normal)
}