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.
Answer by Mergster · Dec 08, 2016 at 09:18 PM
A simple if statement!
if(playerHealth < 50){
//replace normal idle animation with hurt one
}
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.
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
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.
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.
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...:(
Your answer
Follow this Question
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