Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Need Help: Unity Sprite Animation

A topic by Madipup created Jul 18, 2020 Views: 860 Replies: 7
Viewing posts 1 to 2

Hello, I am trying to make sprite sheets to test my character animation and import them to Unity, but they keep turning out terrible. Well, the first one turned out fine. But that is because its a front facing animation. The left and right sprites are turning out horribly, and I don't know how to fix it, I have been at it for hours. I am not sure if I am just doing the pivot points wrong. 

Here is the sprite sheet I am using. (except transparent in Unity)


Moderator

By “turning out horribly” do you mean that it doesn’t look the way you expected? Is this an art question as opposed to a question about how to import it properly to Unity?

An easy way to see how a frame animation would look, is to open it in an image editor, and put each frame in a different layer. Then you can make different layers visible/invisible to see how it animates. Some image editors like GIMP also has support to animate the whole thing based on the layers.

This way you can move each layer, to make sure the pivot looks correct, also make sure each layer is the same size. Once you are done, you can put each layer next to each other manually, making sure they are all the exact same width/height. I’m not sure if there’s an automated way to do that, but for a 5-6 frame animations it’s not a big deal.

The animation itself is fine. I use Clip Studio Paint to animate. My question is related to Unity itself, when I try to slice and put my sprite sheet into Unity, it looks messed up. I messed around with the pivots for a few hours, but no dice. 

(1 edit)

Here’s an example of what I mean. 

The animation is playing on the left. My player object already has a down and up animation looping as intended.

https://cdn.discordapp.com/attachments/609928057196642317/733980888991268925/bkoahwidwahd_-_SampleScene_-_PC_Mac__Linux_Standalone_-_Unity_2019.4.4f1_Personal__DX11__2020-07-18_.mp4

Moderator

Hmm took a look at the animation, one thing I noticed is that the frames show up in the wrong order, is that intentional? If we take for example the frame animation you posted above, and number the frames from 1 to 6, they show up in the video in this order -> 1 3 4 6 2 5

I doubt this would fix the pivot issue, but maybe it can help make it more clear where the issue is?

Other than that, I can only assume something is misconfigured in Unity, and unless you show us how it is currently configured, I doubt anyone can offer more advice.

I’m pretty sure that the frames are in the correct order, I’ll double check though. And all the Unity settings are default, but I’ll still post screenshots of my sprite editor, but I’m not sure what you mean by “showing what I have configured”? What should I screenshot to make things easier?

Moderator

I checked the video that you linked frame by frame, and the animation frames were not showing in the same order as the sprite you posted above.

What steps did you follow to make your sprite appear animated in Unity?

I imported the sprite sheet, and sliced it using the auto slice thing, and then I adjusted it. Made the pivot the bottom center, and then dragged the frames created by Unity into the scene so it would make the animation.