- Home /
Question by
sandroj2001 · Apr 30, 2019 at 12:18 PM ·
animation2d game
Death animation in 2d game.,Death Animation in 2D Game.
Hello, I've created the death animation and attached the boolean variable "Dead", I want it to be played on the collision but it plays only the first frame. See the script:
if (col.collider.name == "obst")
{
Debug.Log("YOU LOSE");
animator.SetBool("Jump", false);
animator.SetBool("Dead", true);
}
Any ideas?
Comment