- Home /
Cut scene Animation?
How do I set up a cut scene animation in Unity. I have this robot that needs to perform an animation every time it hits a trigger. The animation is the robot drives forward extends an arm, and drills into a rock. I need this to happen the same every time but if I move the location of the trigger the animation needs to happen in the new spot. how do I do this?
Answer by Noah-1 · Feb 04, 2011 at 07:29 PM
You can make a script for the robot like this:
//Robot animation
function OnTriggerEnter (other : Collider) {
if (other.CompareTag ("CheckPoint")) {
Animation.CrossFade("Your Animation")
}
}
Here youre going to create a tag for the checkpoints your robot is going to touch. Then just add your animtion name.
Dont forget to check the box isTrigger on the checkpoints.
Good Luck Ryan.
Your answer
![](https://koobas.hobune.stream/wayback/20220613102837im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Would a Cinema 4d model keep good graphics when imported into Unity? 1 Answer
2D Undertale like Cutscenes / Animations,2D Undertale type cutscenes / animations. 0 Answers
Wait() is not working for me! 2 Answers
Is it okay to use the animator with cutscenes ?!,is it okay to make cutscenes with animator ? 1 Answer
How to create a cutscene on a specific spot in the game environment using cinemachine and timeline? 0 Answers