2D Toolkit Forum

2D Toolkit => Support => Topic started by: csotomon on September 08, 2012, 11:53:47 pm

Title: HFlip and sprite collection anchor problem
Post by: csotomon on September 08, 2012, 11:53:47 pm
Hi, I have a Sprite animation for my Hero.

Fir u had create a sprite collection with anchor = "Middle Center", but my diferents sprites have diferents sizes. and the animation see looks a little jump because of this.

On the WebPage, I found a reference that I must set in my animations to "lower left" as anchor , but to them as well, and ahcer hflip, I have the following problem.

How I can fix it?

I have a video with a example.

http://www.youtube.com/watch?v=iFgnYWCZ4yc&feature=youtube_gdata_player (http://www.youtube.com/watch?v=iFgnYWCZ4yc&feature=youtube_gdata_player)
Title: Re: HFlip and sprite collection anchor problem
Post by: unikronsoftware on September 09, 2012, 12:16:17 am
The anchor point has to be set up consistently when creating the art, otherwise there will be no way of getting the correct anchor point. Best option is to change the source artwork adding empty space where necessary to keep it consistent. Alternatively, you can set up custom anchor points on the frames which are incorrect if there aren't too many of those...