- Home /
Transition between 2D animations with different frame width
Hi fellow Unity users,
I've got a player animation of getting up from a bed in which the last frame is the first frame of next animation - idle, when he just stands next to his bed. However, the frames for "get up animation" are a bit wider than for "idle animation" thus when "get up" finishes playing, the players jumps a couple of pixels to the right instead of beginning an "idle" state exactly where "get up" ended. Any ideas of how to fix that?
Any form of help will be much appreciated. :)
What are you using for a pivot point? It's also the zero/central position. If both animations are centered, then using a central pivot point (or center-bottom or something) should fix your problem. If they're still off, you might have to manually match them up, which is kind of painstaking.
Thanks for your interest!
Hm, all my frames are pivoted at center. I tried to adjust the "idle frames" with custom x pivot so that they appear exactly where the last "getup frame" finishes, but it obviously breaks a lot of other stuff, such as controlling a character (because I have a walking animation and even if I adjust its pivot to the pivot of "idle", then pressing left and right, so-called "swapping", is clumsy). Can you please tell me what else I can do?
Can't you just fix the sprites that don't match? Fix the getup ins$$anonymous$$d of the idle, if the idle already matches lots of things. The different width is okay as long as the center points match up.
Your answer
Follow this Question
Related Questions
Multiple Sprite animations 1 Answer
How do you create moving 2d effects? 1 Answer
Isit Possible to turn a drawing into sprite? 3 Answers
Using animated transform to push object away? 2D 0 Answers
Animated Tile control 0 Answers