- Editado
remove a character
I am using the Corona SDK
I would like to add my spine character to a display group. Would I add the skeleton? or do I need to add more?
And does anyone know the proper way to remove a character? If I add it to a group, can I just remove the group when I am finished with it?
I am adding a character to a stage and when I add a new character, I want to remove the old character.
thanks,
Dale
So I'm working with LibGDX and don't know how Corona handles stuff. But the fact that there is also a stage and it's a 2D gaming framework tells me that things can't be too different :p
My current setup is this:
LibGDX Screen
LibGDX Stage
LibGDX actor
Spine Skeleton
So the screen has a stage, to that stage I add actors and inside the actor I will import all the neccesary resources and do all the skeleton logic. When I'm done with a character I can simply call actor.dispose(); in my screen and get rid of it.
The only thing you should look out for that if you do remove the character from your stage to also dispose of all resources inside the character object that need disposition.
Hope this helped somewhat,
Kate
awesome. thanks. I did a similar thing and it seems to be working.