Ok, my game was nearly ready, but when I added all the objects I want to track in a collision I learned that you can’t have more than 16 groups for colliders. Unfortunately, I only needed about 5 more, but it is what it is.
I can’t figure out how to properly set this up. At first I saw a post about saying check the URL of the objects by naming each collision group something unique. The problem is only the sender provides the URL. The other is just something like /Instance1 since it was made in a factory. By far, this would be the preferred solution for me.
Then I tried setting a custom property. But then I think I need to do more messaging and even then I couldn’t figure it out on how to check the custom property of both GOs during a collision.
So now I read where I need to do a LUA module and setup my various types there. And with that I have no idea what to do. Is there an example, somewhere? I know I’m not the only one that needs to track two objects that collide and they use the same group name, but you still need to figure out what type of GO it is.
Would something like this work for what I’m trying to do?
rgrams/defold_entity_manager: A simple Lua module for Defold to keep track of existing entities of various types. (github.com)