Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
3
Question by AnsonRutherford · Jan 16, 2014 at 05:20 PM · animation4.3template

Swapping between many similar sprite animations in 4.3

So, I finally ran into a question that I can't find being answered anywhere else.

I'm trying to let the player create a character and use them in my sidescroller. To accomplish this, I've created separate spritesheets for each shirt/mouth/nose etc. During gameplay, all of the parts will be overlayed and animated together to create the character.

The problem is, even though the animations for each sprite are the same (one walk cycle and a jump frame), I can't find an easy way to use the same animation with a different sprite. I have the walk cycle all set up, and I can copy the animation and put in the frames of another sprite sheet, but what I'd really like to do is be able to change in script which sprite-sheet the animation uses. Seeing as I can't figure out how to do that, I've come up with two alternate solutions, neither of which I'm fond of:

  1. Create a folder for each possible body part, and copy and paste the animator, walk animation, and jump animation, for each sprite sheet. Then, jut change which animator the player object is using for each body part. This seems like a humongous waste of time, space, and energy. But it is the most direct and simplistic.

  2. Ignore all of 4.3's nice animation features and simply import every single spritesheet into an array in the player's script, and handle animation directly from in there. I'm not 100% if I can access the sprites of a spritesheet, or if I'll have to import each sprite individually, but I do have experience with animating through scripts (t-thanks Game Maker), but, again, seems like a lot of work for something that should be so simple.

Which of these is the better solution, or, preferably, what other alternatives are there?

Thanks in advance, all responses appreciated.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jodio · Feb 01, 2021 at 10:43 AM

I have the same problem I dont think there is an easy solution for this

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

19 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

Related Questions

Is there a way to automatically place sprites on regular keyframes in an animation? 1 Answer

Simple animation on game object doesn't play via animation.Play 1 Answer

Animation Lag when Changing Movement Direction 2D (4.3) 2 Answers

Can the animation editor create local rotational data? 3 Answers

Adding animation clips via script 2 Answers


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