- Home /
character fall down when die
i create fps game from fps... when my character die, it just fade and load current leve...
i want to make my character fall down to the ground before level load fade... help me please......
here my character die function:
function Die () { if (die) AudioSource.PlayClipAtPoint(die, transform.position);
// Disable all script behaviours (Essentially deactivating player control) var coms : Component[] = GetComponentsInChildren(MonoBehaviour); for (var b in coms) { var p : MonoBehaviour = b as MonoBehaviour; if (p) p.enabled = false; } LevelLoadFade.FadeAndLoadLevel(Application.loadedLevel,Color.red,2.0);
}
Answer by yoyo · Jan 14, 2011 at 06:35 AM
Depending on your character and how it's rigged, you can just play a "die" animation. Alternatively a ragdoll approach may be appropriate ...
I would say ragdoll aswell. That accomanied with the sound and possibly object cleanup after a timer should make it all go without a big fuss and look pretty decent.
Your answer
Follow this Question
Related Questions
how do i blend a ragdoll and a characters animation 1 Answer
Enemy Ragdoll help 1 Answer
Character animation/ragdoll problem 1 Answer
Get weird issue when change from Mechanim -> Ragdoll 0 Answers