x


Help with setting up a trigger animation

Im making a first person maze exploring game, i have my first person controller set up to explore the maze freely and i have chest objects in the maze already placed. I have no idea how to make it so that when the first person controller reaches the chest it will play an animation of the lid opening. Any help with this would be greatly appreciated.

Thanks in advance

more ▼

asked Apr 13 '11 at 04:20 PM

Christopher Travis gravatar image

Christopher Travis
17 6 7 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

add a collider to the chest then tick istrigger for the collider component in the inspector. Have an animation on the chest of the lid opening then make a script that is on the chest that says when the character enters the trigger play animation. There are so many ways to do this, give it a go then if you encounter problems post another question explaining what you are tying to achieve, what you have done and what the problem is.

more ▼

answered Apr 13 '11 at 05:18 PM

AngryOldMan gravatar image

AngryOldMan
2.6k 12 21 47

ok thankyou for the help ill have a go at that.

Apr 13 '11 at 06:03 PM Christopher Travis
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3929
x1765
x1018
x39

asked: Apr 13 '11 at 04:20 PM

Seen: 1016 times

Last Updated: Apr 13 '11 at 04:20 PM