Character with multiple sprite layers (body, clothes, accessories)

By the way, the sprites weren’t animating, so I had to add the container to the updateList and forward the preUpdate call to the child sprites like so:

    preUpdate(time: number, delta: number) {
        this.bodySprite.preUpdate(time, delta)
        this.eyesSprite.preUpdate(time, delta)
        this.outfitSprite.preUpdate(time, delta)
        this.hairstyleSprite.preUpdate(time, delta)
        this.accessoriesSprite.preUpdate(time, delta)
    }

I get a warning doing this because preUpdate is a protected method, but it works. This seems like a hack though. Is there another proper way I can get animations to work?