NXTGenerationsTv wrote: Code:
var Player : GameObject ;
var slideaudio : AudioClip;
function OnTriggerStay (other : Collider) {
if (other.CompareTag ("Player")){
Player.animation.Play("hint").speed = 0.1;
}
}
this could be helpful for cutscenes and also for simple parkour movement .... but u its really simple it just should give an idea on how it could be done
wow wow wow hold it now..this should be playing some crossfade animations so that you don't leave any unspecified crashing involved in unity3d's editor
Code:
#pragma strict
var Parkouranimation : Animation;
function OnTriggerEnter () {
//this is attached to the gameobject your are referencing to the parkour animation
Parkouranimation.CrossFade("Walk"), 0.1));
}
that should work, just let me know