I recently purchased Spine and created an animated character for a libGDX game. I set the animated character on the screen using setPosition to define the location.
beachballSkeleton = new Skeleton(spriteData);
beachballSkeleton.setPosition(900,200); // Setup sprite position on the canvas
beachballstateData = new AnimationStateData(spriteData);
beachballState = new AnimationState(beachballstateData);
beachballState.setAnimation(2, "beachballroll", true);
Now, I want to duplicate and place multiple instances of this same character (beachball) on the screen simultaneously; however, since setPosition is a function of Skeleton, it renders all the instances of the character in the same spot.
For some reason, I can’t seem to find an example of how to implement this simple function without recreating the Skeleton for each instance.
Could you point me to an example or a tutorial that explains the best method to solve my problem?
Thank you