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 Solu9 · Mar 20, 2016 at 04:18 PM · animationjumpeventattack

How to play attack animation multiple times with mechanim

Heya.

I have an attack animation within mechanim which is triggered by a KeyDown and a trigger parameter in the animator. The Attack animation uses an animation event to fire the bullet projectile at the right moment in the animation.

Now. I want the player to be able to fire in quick succession (every 0,1 second or so). The problem is that the character needs to wait for the event to occur before another shot is fired, and therefore the attack speed is sorta fixed.

How can I, after the first shot is fired, jump to the animation event within mechanim, so the attack animation does not need to play from the beginning?

Thanks in advance.

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 Solu9 · Mar 22, 2016 at 07:08 AM 0
Share

I'm just gonna bump this since when my question got moderated after 18 hours it ended up a page 2 instantly.

If the question is confusing, please do tell.

avatar image Guhanesh Solu9 · Mar 23, 2016 at 06:06 AM 0
Share

yes.your question is bit confusing.can you explain in another way?

avatar image Solu9 Guhanesh · Mar 23, 2016 at 09:19 AM 0
Share

Yeah, sure.

I use mecanim to control my animations. One of these are the character's Attack animation. When I order my character to shoot (Attack) he will play his shoot animation once as he is supposed to. I have set up an event in the Attack animation, so the projectile he uses for ammunition, is spawned at the right moment in the animation.

All the above works fine. However I would like to be able to rapidly click the fire button and make him fire on each click without playing the whole of the Attack animation over. As it is right now. He will play the animation and needs to finish it before he will shoot a second, third, fourth and so on, times.

I was thinking I need to be able to jump to the event in the animation in order to make him shoot faster. Speeding up the animation seem does not seem as the right solution here. But correct me if I'm wrong.

Hope this clarifies a bit.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How do/should I make my character jump? 1 Answer

Add Event in animation from another Gameobject 5 Answers

Animator not been initialized please help 0 Answers

How to add Animation Events in the Timeline editor? 5 Answers

"Motion Blur" for 3D attack animation, like in Blazblue, Breath of the Wild, Etc. 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