Make 4 Collectable Shapes, and Unlock a Door?
I have 4 different shapes I'd like to use as collectables and then once all are obtained the door unlocks. How would I make these 4 sculptures collectables and then how would I use that to unlock a door. I think if it's easier I'd like to make the wall disappear as in the destroy option so it technically unlocks the end area. I saw one post similar to this but it did not make sense to me. I hope this isn't too complicated for what I'm thinking haha. Thanks.
-
I haven't done this kind of thing myself yet. But here's how I'd go about it:
Create the collectible. Attach a destroyer to it. Add a trigger zone close around it. Hook the "detected" output of the trigger zone to the destroyer. Now, when you walk near to the collectible, it'll disappear.
But you want to count how many collectibles you've grabbed. So hook the trigger zone into a counter's "increment" input.
And you want to do something when 4 collectibles have been grabbed. So set the counter's max value to 4. Now, the counter won't ever go beyond 4. And when it's at 4, it'll output a "full" signal.
You want to open a door when 4 collectibles have been collected. So make an animation/keyframe/destroyer to actually open the way. Then wire the counter's "full" output to power-on the animation/keyframe/destroyer.
So! When you walk into a collectible, it disappears and is counted. When 4 collectibles are counted, the door is opened.
Hope this helps ? -
Thank you for your help and breaking it down in a very detailed manner. I am excited to attempt this later.
댓글을 남기려면 로그인하세요.