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 /
  • Help Room /
avatar image
0
Question by CSDragon · Sep 06, 2015 at 07:21 AM · 2danimator2d animation

[2D] How to make an animation start on the frame the previous one stopped on?

Basically, if I'm running an sprite animation, any time I transition to the next animation, it always starts on frame 1, which is great in most cases, but in this particular case, not so much. I have 2 animations which I want synchronized, meaning when you transition from one animation to the other, it remembers which frame of the animation it was on.

So instead of: cursorFree[0] - cursorFree[1] - cursorFree[2] -trigger- cursorSelected[0]

it instead does: cursorFree[0] - cursorFree[1] - cursorFree[2] -trigger- cursorSelected[3].

But I can't figure out for the life of me how to do so, and searching has been useless too.

I don't want the first animation to finish before the next one starts or anything like that.

A great example of what I'm taking about is here in Fire Emblem Awakening. Notice how the cursor has 2 animations, one when it's idle, and one when it has selected a unit. However, when it transitions between these two states, the color pulsing stays in sync. When the cursor returns to idle, it shows that they are just 2 animations, not something more fancy with the colors going on, as the cursor returns to the idle animation at a point based on its color. This is literally what I'm trying to do in my own game.

Comment
Add comment · Show 1
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 hexagonius · Sep 06, 2015 at 08:07 AM 0
Share

put your idle on layer 0 and color selected on layer 1. start both.this way, the selected animation overrides idle which keeps playing in sync.once done while jumping back you are on the exact next frame of the idle animation

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

29 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

Related Questions

How do I stop an animation from looping? 1 Answer

2D Animation disables Player Controller Script 1 Answer

What's the best way to set up an animator controller for a character that can look up, down, or sideways? 1 Answer

How do i extend a animation ? 1 Answer

Transitioning between 2D animations by frame 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