Dagoba
Member
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 method:
During collision with par_fruit:
if (object_is_ancestor(self, par_fruit)) {
// Some code here
}
The debugging returns 0 when I try to print that objec_is_ancestros return value.
Any ideas?
Thanks in advance!
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 method:
During collision with par_fruit:
if (object_is_ancestor(self, par_fruit)) {
// Some code here
}
The debugging returns 0 when I try to print that objec_is_ancestros return value.
Any ideas?
Thanks in advance!