Separate Sprite and GameObject

@BlunT76 Thanks. On this other post, rexrainbow said he was interested to make a series of plugins for plaformers, as he did for board games, but he wasn’t familiar with what kinds of function the platformer should include. Since you have experience with them, don’t hesitate to contact him if this interest you. I would also be interested to see some of your code, since you often find good ideas in other people code.

@samme I wasn’t using the proper word, since attach already have a meaning in Phaser. I was simply thinking about linking them in my own code. I’ve never thought about making my character class a Container. It actually makes a lot of sense, since I can attach any kind of Sprite to it. That could also be useful for other features like health bar. I’ll have to think about the impact on performances but that’s a good option. Thanks!