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 /
avatar image
0
Question by MC_Grove · Jul 22, 2018 at 11:00 PM · animationanimatoraiassetattack

Help implement such attacks

Hello everyone, long been tormented by the question of how to integrate and even implement such attacks, interference in the space of the player and the interaction between the enemy and the game, can eat what assets, help with this issue

alt text

alt text

5.jpg (143.0 kB)
4.jpg (126.2 kB)
Comment
Add comment · Show 4
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 Stratosome · Jul 23, 2018 at 12:27 AM 0
Share

I don't really know what you mean by attacks. I can assume that those images are them, but it is still unclear what is happening. I'm going to guess that it is something where the player loses control of the camera, it forces the player to look at the attacker and you must like do something to escape perhaps (if that option is allowed). If this is the case, wouldn't it just be a matter of locking the players ability to move or look around while animating the camera a certain way with an enemy close to the camera?

avatar image MC_Grove Stratosome · Jul 23, 2018 at 01:25 AM 0
Share

Prior to blocking the movement and the camera, but how can you make interaction, how to unite 2 different animations, then what does the enemy's arm grab at the player's shoulder and pulls to him, animate two characters from in one scene or what technique is there?

avatar image MC_Grove Stratosome · Jul 23, 2018 at 01:36 AM 0
Share

How do I get a frame into the frame with the animation of one character and the animation of the other, I understand that I can not run 2 animations at the same time?

avatar image Stratosome MC_Grove · Jul 23, 2018 at 01:44 AM 0
Share

I posted my thoughts on the issue below, but I think the best way to do it would be to have two different animations ins$$anonymous$$d of one combined one. They would just look like they are interacting because the two animations are made for each other and are played at the same time.

1 Reply

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

Answer by Stratosome · Jul 23, 2018 at 01:42 AM

Alright, so this isn't something I have a whole lot of experience with, but I'll post my thoughts as an answer in case it is helpful. I think the best way to go about this problem is to play both characters animations (the player and enemy) play in sync with each other. When actually creating these animations, you can probably combine two animations into one file temporarily and make one animation play around the existing one (or maybe manage to animation both at the same time with each other?). After you have these animations looking good, you can separate them so that these animations are different and can be applied to the correct thing. With the animations made, all you would have to do is trigger the event some how (perhaps the enemy gets in range), and then adjust both the enemy and the player to be in the proper rotations or positions to start the animation. At this point, both animations should be able to be played in sync and it would look like they line up. Knowing the initial conditions of the animation (like position and rotation) I think are the main part here and just making sure that these conditions are properly met to make the animation look right.

Comment
Add comment · Show 3 · 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 MC_Grove · Jul 23, 2018 at 02:31 PM 0
Share

those. In the animator of the player there is one state and in the animator of the enemy another state and when I approach the player I block the movement and the camera, I turn on the state with the animation and also include the animation state of the enemy?

avatar image Stratosome MC_Grove · Jul 23, 2018 at 02:37 PM 0
Share

I'm not sure I quite understand what your question is there, but that's the right idea. When the attack is supposed to happen (perhaps when the two get close enough), you would want to access the animator on both the player and enemy to trigger the animations.

avatar image MC_Grove Stratosome · Jul 23, 2018 at 02:40 PM 0
Share

Thanks for the answer, I will try

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

285 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 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 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 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 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 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 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 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 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 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 to detect if player hits enemy half-way into an animation? 0 Answers

A* Pathfinding project with mecanim animation 0 Answers

Mix and match animations 0 Answers

Animator and AI issues using Stealth game tutorial 1 Answer

I'm still having Trouble with this AI 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