Avatar in a new Sprite

Hi everyone,

I’m working on a problem that seems simple but isn’t quite so straightforward.

I want to create an avatar for the player that they can choose from a list of country flags, grouped by continent. Each continent is a sprite with one animation per flag, and each animation displays the country’s name.

For the avatar, I want to use the “userflag” sprite.

However, it’s not possible to transfer a graphic from a sprite/animation into the userflag sprite.

The solution suggested so far by GDevelop or Google was to simply load ALL flags from the flag sprites into userflags (as copies) and display the corresponding animation.

It can’t be the solution to load over 200 flags every time just for one small avatar graphic.

I’ve also tried variations involving selecting the graphics with ‘base64’ actions, saving them, and reloading them as graphics. I find that not good.

Does anyone have an idea for a simple solution?

Thank you

A potential solution is to use the sticker extension, and stick the continent sprite (with the selected flag) to the userflag sprite. It’s not ideal, but it’ll look like the flag is part of the avatar, and if the userflag moves, then the flag image will move with it.