#How to make a key door
1 messages · Page 1 of 1 (latest)
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
Explain in a easy way ples
I'm not used to make games without scripts so if i can tomorrow i can try to find a way to it
But i want with scripts
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
explain more of the door, like, how does it work?
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
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)
Ok thanks,i think i can do it