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 Wolfravin · Dec 08, 2016 at 11:19 AM · programming

2 idle poses?

I made a 2nd idle pose for my main toon for when there half way dead so to speak. I am wondering how to program it for when she is past the half way mark so that the "Hurt Idle" plays over the normal Idle.

Edit I almost forgot I also did a hurt for the walking so that kinda falls under the same question as the Idle one.

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 Mergster · Dec 08, 2016 at 09:18 PM

A simple if statement!

 if(playerHealth < 50){
  //replace normal idle animation with hurt one
 
 }

Comment
Add comment · Show 7 · 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 Wolfravin · Dec 09, 2016 at 06:47 AM 0
Share

I'm asking cause I am fallowing a tut on Unity 5 2D unity and the guys code is kinda crazy I fallowed up to part 8 or so and his code ended up breaking on me. I'll link the video playlist just so you guys and even you $$anonymous$$ergster can see it. Being honest I fallow this guys tut to a T and still the code won't fully work or it will work fine but cut ties with one of the animations.

2D Platformer By inScope

avatar image Mergster Wolfravin · Dec 09, 2016 at 05:17 PM 0
Share

Ahh, okay. Well, I don't know how to give you all the code 'cause I don't know the exact system you're using and following a bad tut is just a waste of time. There's better 2d plaformer tuts such as: https://www.youtube.com/playlist?list=PLiyfvmtjWC_Up8XNv$$anonymous$$3OSqgbJo$$anonymous$$QgHkVz

avatar image Wolfravin Mergster · Dec 09, 2016 at 08:21 PM 0
Share

I can agree a bad tut is a wasted of time I do recommend watching it for a bit just to see what I'm talking about.

Show more comments
avatar image Wolfravin Wolfravin · Dec 10, 2016 at 04:16 AM 0
Share

It works up to a point first time I fallowed it I got up to part 11 and the code was right but attack,Jump attack and slide wouldn't work but the idle walking and jumping would.

2nd time the code for the attack was going to make the player stop moving fully while she was attacking that is counting sliding but she still slides.

avatar image Mergster Wolfravin · Dec 10, 2016 at 04:47 AM 0
Share

Well, I don't know what to say....If that system isn't working then you'll have to start over. If you get stuck on just that lesson then there's already something gum$$anonymous$$g up the works. So...yeah....Srry but if I help you fix the particular problem there's no saying that there won't be lots more...:(

Show more comments

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

85 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

Related Questions

Missing Reference Exception 1 Answer

Check if a boolean is true by use of a string 2 Answers

Photon not working/detected 2 Answers

How to use collision detection properly? 0 Answers

Health Will Not Deplete as I shoot Enemy. 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