FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Share

descriptionplayer plays animation on trigger enter

more_horiz

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

descriptionRe: player plays animation on trigger enter

more_horiz
Skype?
I need help With animations for an fps

descriptionRe: player plays animation on trigger enter

more_horiz
[You must be registered and logged in to see this link.] wrote:
Skype?
I need help With animations for an fps

what kind of help ... maybe i can give u some

_________________

descriptionRe: player plays animation on trigger enter

more_horiz
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
Skype?
I need help With animations for an fps

what kind of help ... maybe i can give u some


Hard to explain... Please skype me so i can try to explain

descriptionRe: player plays animation on trigger enter

more_horiz
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
Skype?
I need help With animations for an fps

what kind of help ... maybe i can give u some


Hard to explain... Please skype me so i can try to explain

added you

_________________

descriptionRe: player plays animation on trigger enter

more_horiz
ok. i couldnt find your request on skype. Nevermind i solved it. The new unity animation system isnt as good as i wexpected it to be.

descriptionRe: player plays animation on trigger enter

more_horiz
[You must be registered and logged in to see this link.] 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

_________________
-BryceCain25
Permissions in this forum:
You cannot reply to topics in this forum