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 rednax20 · Jul 06, 2013 at 04:51 PM · animationframespecific2dtoolkit

Unity 2d Toolkit Specific Frame

Hey, I am using 2d toolkit to make a sprite game. I have the players throwing punches but the problem is the punches should only do damage during the delivery, not the wind up. So I need to have some way to check what frame the current animation is on. This way I can tell whether the opponent should take damage or not when the collide with each other.

is there a way to return the current frame in an animation using 2d toolkit?

Comment
Add comment · Show 3
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 InfiniBuzz · Jul 06, 2013 at 05:09 PM 0
Share

I dont use 2d toolkit so im not sure about the setup but if you use OnTriggerEnter, the damage should only be applied once

avatar image rednax20 · Jul 06, 2013 at 08:52 PM 0
Share

Yes, but damage not only needs to be applied once, but only at certain moments. thats why i need to know the current frame of the animation, or the sprite id.

avatar image rednax20 · Jul 07, 2013 at 05:34 PM 0
Share

I $$anonymous$$now this is a little off topic but does unikron software (the people who make unity 2d toolkit) have a decent answers website, this question would be better suited there if there was one.

1 Reply

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

Answer by kag359six · Jul 11, 2013 at 06:43 PM

unikron software has a forum where the guy who developed it answers questions daily. The support forum can be found here

Comment
Add comment · Show 1 · 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 rednax20 · Jul 11, 2013 at 09:19 PM 0
Share

thank you, I found another way to solve my problem using IsPlaying. Thanks again.

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

18 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

Related Questions

Smooth bone rotation 2 Answers

create game and watch style frame by frame animation 0 Answers

Is there any hotkey to swich to the next/previous frame in the animation windows? 2 Answers

Frame offset in animation. 1 Answer

Set Animator Animation to specific Frame 0 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