Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In Motion Welder Library , why are there two version of player to play animation, MSimpleAnimationPlayer and MSpriteAnimationPlayer, and which one to use?

0
Posted

In Motion Welder Library , why are there two version of player to play animation, MSimpleAnimationPlayer and MSpriteAnimationPlayer, and which one to use?

0

Both MSimpleAnimationPlayer, and MSpriteAnimationPlayer are used to play animation, but only diffrence is the way they interact to play animation. (I) MSimpleAnimationPlayer player = new MSimpleAnimationPlayer(animationData, x,y); (II) MSpriteAnimationPlayer player = new MSpriteAnimationPlayer(animationData, mycharactersprite); In (I) player accepts animation, and ask for where to play that animation, where as in (II), the location, orientation etc is pulled from mycharactersprite (MSprite) object. In case where there is no requirement for a class for a sprite, use of MSimpleAnimationPlayer is preferred. And case where you have class for a sprite, use of MSpriteAnimationPlayer is preferred.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123