I have a bunch of snowmen. They are all tween. When a player is captured by a specific snowman it is carried by it.
It is messy, inconvenient and time wasting to create every single sprite and set it to tween. I have learnt to use
const snowman = this.physics.add.group(); snowman.create(x, y, 'key');
But this does not give each snowman a name. When I set the player's X and Y when it is being carried, I set it to the x and y of the snowman that hit him. If I use the code above, it will obviously no longer work. What can do instead?
