Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Basic collider problem with a death script.

Discussion in 'Animation' started by nicole.dewinter, Nov 6, 2013.

  1. nicole.dewinter

    nicole.dewinter

    Joined:
    Nov 6, 2013
    Posts:
    10
    I've created a small scene- a maze. I have three arrows that are animated to shoot in a straight line. They are triggered by a box collider on a pressure plate. If the arrows collide with a plane that is in front of the camera, then a death animation and level load script plays.
    http://puu.sh/5ac8I.jpg
    http://puu.sh/5ac9r.jpg

    My problem is that the script doesn't play- or- the person doesn't die unless the arrows hit the player while the player is moving. Currently it is the plane on the FPC that is the trigger for the arrow. I've tried changing it so that the arrow is the trigger but the death animation stops altogether.

    Is there something anyone knows that could fix this? The scripts are default ones that were given to me by the course instructor (media course).

    Here's the scripts I have used;
    Trigger: http://puu.sh/5aclV.png
    Load level: http://puu.sh/5acng.png

    Any help or ideas are very much appreciated.