Author Topic: Disable Death Animation  (Read 2782 times)

I was wondering if anyone knew a function I could use to disable the death animation.

Why would you want to disable the death animation...But anyway just make a package with a couple function's repeating the death to create player but leave out the animation.

That won't due for what I'm using it for.

Oh explain what your actually doing then?

If you delete the player model on death does that screw it up?

I believe on death the player model is already deleted but then re-created?

Well ya see, with tumble on death you still play the death animation. Therefore every time you die you do a back flip and then turn around and land facing the other direction. This isn't very visually satisfying or realistic. Also when you're tumbling you're body moves somewhat freely depending on how you rotate. So by disabling the death animation It'd make tumble on death more realistic and visually satisfying.

[edit] No the player object isn't deleted and recreated it's just plays the death animation. Also if you were to do that it'd create unecessary complications.
« Last Edit: July 06, 2008, 08:56:13 PM by tommybricksetti »

I believe on death the player model is already deleted but then re-created?
No I mean when they die so they don't fall over dead; they just disappear.

Apparently he's looking for something else. I think you'd wanna apply some rotation force or something to counter the falling over.

Well BL isn't supposed to be realistic :D but I suppose your right. And Falcon I think applying rotation would make it look like a blockhead trying to do the twist xD.





    
Warning - while you were typing a new reply has been posted. You may wish to review your post.  Grr...

Rotation as in frontflip.

It's not rotation it's an animation. The problem is only caused because when you die you don't fall straight back, instead you lean slightly to the left.

Oh well Falcon is right then on death add an impulse to the player so he slightly tilts to the right counter balancing the left tilt so he appears straight?

And how exactly would I do that?

Make a package and add a function for onDeath to add an impulse to the player. Search for how to add an impulse.

It'd still be better if it just disabled the death animation...