Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by SelfishGenome · Oct 26, 2015 at 12:00 PM · animation2dspritesspritesheet

2d sprite animation issue

Hi, I am just wondering where I might be going wrong setting up 2d animations. I am not an artist but I think the sprite sheet I have created is set up the correct way, at least it looks like it is set the same way I have seen in references.

However when I create the animation my sprite seems to twitch as if the pivots are off centre. I know I can change the pivots and I know how, but I am wondering why Unity does not just pick up the correct points like other sprite sheets I have tested. for instance the Braid sprite sheet here Braid has many different widths and heights for the run animation, but with no changes in unity it works perfectly with zero twitching.

I have attached my sprite sheet alt text here to see if any of the more arty people can see where I am going wrong.

I'd really appreciate some help so I can create future sprite sheets correctly opposed to spending hours twiddling with pivot points for each individual sprite.

And just so people know my approach with both my sprite sheet and the braid one. I am using unity 5, selecting frame 0 - x (x being the last relevant frame), dragging them into unity scene (creating an automatic animation). This is done using a Sprite 2d, multi, auto slice.

Any help as I said is really appreciated as this is driving me insane.

charactersheettest.png (3.9 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by anyname1 · Oct 30, 2015 at 01:24 PM

@SelfishGenome

Set the file size in your art tool to be a multiple of 32 x32, 64 x 64 etc. depending on the max size each individual sprite will take up. after checking all of the sprites animate correctly in your art tool you will need to make sure each sprite is moved to a certain distance of each other.

I accomplish this using Photoshop, creating a layer with a coloured square, in the example below that is 64 x 64 on a 512 x 512 image. Then simply move each sprite exactly into the adjacent square with the coloured layer behind making sure it lines up exactly.

Finally when you have all of your sprites separate again, import into Unity and slice by grid size, using the division size you used in the art tool, in my instance again that is 64 x 64.

alt text


untitled-2.png (83.8 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by tarasfromlviv · Oct 30, 2015 at 09:08 AM

This is because it trims out each image (alpha) and the end up with slightly different width and height. For this case I would suggest laying them as a perect grid and then use grid in Unity sprite editor.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

49 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Fast Sprites Extraction from Sprite Sheet 0 Answers

Animating hair over sprite animation 0 Answers

Jagged edges on spritesheet animation 0 Answers

2DAnimator Freezes first time an animation is played 0 Answers

Lines between Tiles when using Tile Palette (2021) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges