problem with death animation and game pausing.

I’m trying to have the game pause if my character dies, but only after the animation plays, I tried the WaitForSeconds command but it didn’t work, anyone know how to do this?

EDIT: Or better yet, if anyone knows how to end the game if my character dies, or to bring up a end game screen. thanks.

On the script that manages player health, there should be an “if player health <= 0, do such”. Inside this if statement, you can put WaitForSeconds command and/or ApplicationLoadLevel() which would be your game over screen. This is how it should work.

pseudocode
If PlayerHealth <= 0{
WaitForSeconds ()
ApplicationLoadLevel(Level # Here)
endif
}