• Editor
  • Hide skin placeholder image in the same animation?

Hello guys!

I have 2 characters for the same animation. Character1 carries a bag and the Character2 does not. Which would be the best way to hide the image of the bag on Character2 without hiding it in the Character1?

The animation is the same for both of them.

Is it possible in Spine? I solved it unchecking the export option of the bag image for the Character2. It seems to work but I feel it's not the best way to do that. Sometimes seems to appear again somehow in-game.

Many thanks in advance :sun:

Related Discussions
...

When you say 'two characters' you mean two separate skeletons in the same project, or the same skeleton with two skins...?

If they're two skeletons they're treated as different entities, so their images and also their animations are not actually 'the same', even if they're identical in both.

So if that's the case you should be good by, not only keying an attachment hiding at frame 0 for that bag, but also stripping that image altogheter from the skeleton, if that character will never carry it.

If it's the same skeleton with two skins then that something you'll need to do at runtime side, I think. Wiser people around here would correct me if I'm mistaken.

hey Abelius, thanks for the answer. Indeed, we are working with a single skeleton. So, is there no way to make it work directly from spine?

Thanks 🙂

trinee escribió

hey Abelius, thanks for the answer. Indeed, we are working with a single skeleton. So, is there no way to make it work directly from spine?

If you're actually using skins to make different characters with the same skeleton, then I'd include the bag in Character1 skin and not in Character2 skin.