#How to make a key door

1 messages · Page 1 of 1 (latest)

warm coyote
#

How to make a key and a key dor 3x version

mint idol
#

Like that you can only open a door if you have a key? I know how to do that

#

I just need to know if you know basic script knowledge and know how to use variables

#

I know the answer anyways, i'll just tell it to you in a different way

warm coyote
#

Explain in a easy way ples

mint idol
#

I'm not used to make games without scripts so if i can tomorrow i can try to find a way to it

warm coyote
#

But i want with scripts

mint idol
#

Oh ok, then just add a global variable, make it type number and initial value=0. The when you pick the key make it that it add 1 to the variable. And in the door do "if variable >0 then: and it eorks

warm coyote
#

explain more of the door, like, how does it work?

mint idol
#

When you get close to the door, with collision detector, it checks with a script if a variable type true/false is true. The variable is initially set as false and when you pick up the key it becomes true

warm coyote
#

But how to make the door open?

mint idol
# warm coyote But how to make the door open?

When the door is locked, there should be an invisible block in it (do that you can't go there). When it unlocks you make the block self destroy (and add an animation to the door)

warm coyote
#

Ok thanks,i think i can do it