So, i'm making a secret that has a glass cube which will take you there(see nm_unlocked for example how i want it to be.
I'm planning this: secret is other side of gap, which is almost full of hurt triggers (except where the cube goes, so it's highly secure) When you enter correct code, the cube will come to you and one side of it opens as a door, you go in, and it takes you to secret.
Code what i've come up
Code: Select all
blablabla, the code part of it
if code correct:
cube movex 200, 3; // cube moves to you, takes 3 seconds
cube waittill ("movedone"); //wait for cube to move
cubedoor1 movez -120, 2; // door opens, takes 2 seconds
cubedoor1 waittill ("movedone"); // wait for door to open
wait 5;
cubedoor1 movez 120, 2; // door closes, takes 2 seconds
cubedoor1 waittill ("movedone"); // wait for door to close
cube movex -200, 3 // cube moves to secret, takes 3 seconds
cube waittill ("movedone") // you know at this part what this does
cubedoor2 movez -120, 3 // other, opposite of the cube is another door, which will open
cubedoor2 waittill ("movedone")
cubedoor2 movez 120, 3 // door closes
PS Adding some screenshots and code what i might come up later