Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ez06 · May 06, 2014 at 05:49 PM · animationsprite

How to deal with an animation from sprites of different sizes?

I am making a standard animation from a sprite sheet (45 sprites). I sliced it with the Unity Sprite Editor but the problem is the sprites all vary in size, because my animated object is shrinking.

Not sure how I would use the pivots in the sprite editor, because I would have to manually position the pivot for all 45 of my sprites.

I know that I could tweak the position of every sprite but is there a more professional way of doing it?

Thanks in advance.

EDIT: I uploaded an example. As you can see the center of gravity of every sprite is different. I was thinking of making a rectangular stroke of the same size around every sprite, in order to help Unity slice sprite of always the same size, but I would lose space on my 1024x1024 sprite sheet.

alt text

screen shot 2014-05-06 at 22.18.51.png (32.2 kB)
Comment
Add comment · Show 5
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 ThePunisher · May 06, 2014 at 06:47 PM 0
Share

I'm going assume you are shrinking some sort of character and that you want it to stay grounded as it shrinks. Is that correct?

avatar image ez06 · May 06, 2014 at 07:06 PM 0
Share

Hi there, thanks for your response. Actually the character is flying and has the shape of an oval. Its size decreases unevenly and I want the center of the sprite to be always at the same place throughout the animation

avatar image ThePunisher · May 06, 2014 at 07:09 PM 0
Share

Then you shouldn't have any problem if the source images are always centered? What kind of behavior are you seeing currently? Can you post an example of two sprites? Perhaps one where it is at its largest scale and one where it is smaller?

avatar image ez06 · May 06, 2014 at 09:25 PM 0
Share

Just uploaded an example. Thanks a lot

avatar image ThePunisher · May 08, 2014 at 04:29 PM 0
Share

Cool man, I'll experiment with the idea for a bit and see if I can find out a good way to handle it.

0 Replies

· Add your reply
  • Sort: 

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

21 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

Related Questions

Sprite Manager Play animation 0 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

2d animation import 1 Answer

2.5 platformer sprite animated character 3 Answers

Animation Script Help 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