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 robinlinh · Mar 08, 2015 at 09:25 PM · animationcollider

Collider/interaction for different animation

Hi, my name is Linh and I am new to Unity. I just started learning about unity 2D about a month by watching videos and have some basic knowledge for beginner, and I still have quite lot to learn. I'm learning by doing it and today I have a question cause I haven't seen any tutorial talking about this.

I'm making a 2D fighting game like street fighter, for practicing and testing my animation and coding that I just learn, and the problem is I'm not sure how to make a character interact normally when they are in some specific animation.

Lets me explain: in the tutorial they teach about animation and animation controller, using sprite sheet to make an animation and how to control it. The problem is that they just do some simple animation and motion like idle. running jumping in which the propotion and the shape of the character are little affected, so we just need to create some box collider to cover it and that is fine. But in a fighting game, in some situation when the character falling on his back or punching something, the shape change so I can't just just a same collider like when they are idling or running. I'm new to this and I dont know how to make the interaction for each animation. I have think of writing some code "use this collider when this animation is played" but that doesnt sound professional. So if someone have experience, please teach me how to do it right. I'm very aprreciated.

Ps: If you don't mind I hope to get to know with some of you. It is nice to get to know with someone who shares the same passion and also I'm learning unity at home and sometime I really need to ask someone about something. Thank you

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 Julien-Lynge · Mar 08, 2015 at 09:26 PM

Hi Linh,

Thanks for the message! It's good that you're getting involved with Unity.

Unfortunately, there is no existing 'how to make street fighter' tutorial, and your question is much too large for us to solve for you in a couple paragraphs.

Here's the quick answer: You probably can't do this using sprites, since Unity just sees sprites as an image with pixels, and not as a shape. You'll probably want to use bone animations or child object animations. There's a tutorial series on the Unity website that contains an example of a bean character with this setup: http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-overview

Once you have that, you can add colliders to the character's arms, legs, weapons, etc., and use Unity's physics system. Of course, you'll have to learn how to use the physics system, but there are tutorials on that as well.

Good luck!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Need help with some OnTrigger Scripting 2 Answers

How to create a collider-trigger that will start an animation when you press E 0 Answers

Possible to stop collider from "popping" through plane when re-centering? 2 Answers

Trigger Animation doesn't work, please help me. 1 Answer

Problem with Reverse Animation 1 Answer


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