Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by mm_dev_8

*Easiest way to make a door is simply create a keyframe of it in open position
>Create Keyframe (from animation tab)
>Position door in an open position
>Hit stop recording

*Create a variable gadget for each key you want, give them unique names (key 1, key 2, key 3 for example)
*Use a Trigger Zone or Imp Grab Sensor on key for collecting it
*When the player collects a key
>use variable modifier to set the value of your variable gadget to 1
>Delete key so it looks like it has been collected! (Use a destroyer, or logic connected to visibility)

*On your door, use a trigger zone to detect you are near door
*Connect trigger zone to a Variable modifier set to 'read value'
*Connect to a calculator, check for = 1, (or > 0)
*Connect this to a the keyframe of your door in an open position
*Tweak the keyframe values to make the door animate open slower

If you want this to work across multiple connected levels, then you'll need to make the variables global, and make sure you put your levels on a 'Dream'.

This is all from memory, not at a ps4 right now, but hopefully this works!

-Marcos

Oh dear! Your browser is either unsupported or there has been a problem loading the page.