Applying CompositePaint to an animated sprite

I do not see anything in the documentation on how to apply a CompositePaint to an animated sprite, only to an individual frame.

The most useful case I can find for using CompositePaint is for adding status effects to your animated sprites in a game.

Am I missing the documentation or is this really not possible?

Hi @Anderoth,

Have you tested this in your code? If so, can you post that code here?

Thanks,

Brent

No I havn’t. As mentioned in my original post, I see no documentation on how to apply it to a sprite. The documentation only shows it applied to a single image, or single frame in an imagesheet. How do I set up the paint to apply it to a sprite?

Hi @Anderoth,

At this time, composite fills can’t be applied to animated sprites, only to single images, non-animated sprite objects, or images from an image sheet. It won’t work if you attempt to animate (play) it. You can, however, still apply standard fills using setFillColor(), which might  work for your purposes if the “status effect” is somewhat simple (i.e. tinted green for poisoned, tinted blue for frozen, etc.)

Best regards,

Brent

Hi @Anderoth,

Have you tested this in your code? If so, can you post that code here?

Thanks,

Brent

No I havn’t. As mentioned in my original post, I see no documentation on how to apply it to a sprite. The documentation only shows it applied to a single image, or single frame in an imagesheet. How do I set up the paint to apply it to a sprite?

Hi @Anderoth,

At this time, composite fills can’t be applied to animated sprites, only to single images, non-animated sprite objects, or images from an image sheet. It won’t work if you attempt to animate (play) it. You can, however, still apply standard fills using setFillColor(), which might  work for your purposes if the “status effect” is somewhat simple (i.e. tinted green for poisoned, tinted blue for frozen, etc.)

Best regards,

Brent