I’ve been wondering recently (as I’m working on my first sizeable project in Defold) whether people are using Game Objects or collections as the top level containers for game entities (or a mix of both).
As far as I can see, there are some advantages to using collections over game objects:
- Ability to resize/reposition sprites
- Multiple scripts controlling different parts of an entity (a gun that has a kickback animation when it fires)
- Added complexity in message passing
- In a large project, it can be confusing if certain entities are defined as collections, and others as game objects.
A more general question I will add to the end of this is:
Are there some best practices/patterns that experienced Defold users have adopted? (if this is already covered in another forum post - then please redirect me to it and I’ll edit this part out )