1
\$\begingroup\$

I want to attach one sprite to another so that it is always located at the 'bottom' of the other sprite, regardless of how the main sprite is rotated.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

You can have the attached sprite be an entirely separate entity, and just have this entity be moved beneath the original entity each time this entity updates. If you were using scene2d actors, you could have the bottom sprite just be an actor that continuously executes the MoveToAction with a duration of 0, instantly moving beneath the upper sprite (actor).

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .