I am making a game. I have been successful with more than one layer on the same scene, but I want there to be collision detection. And the simplest way to do this is to have ONE layer. I don’t know how to add a child to a layer from a different class. HELP!
Share
You can pass the layer you want the child added to in a function.
Like this:
This is in your class:
This is in the main layer:
Hope that helps..