How do I put a password in a door?

0 favourites
  • 4 posts
From the Asset Store
The package contains 105 sounds This sound library is perfect for voicing mechanical doors in your Sci-Fi game.
  • First of all, I'm sorry for my level of English . My question is, if there is any way to put a password to a door or vault?, thanks in advance.

  • First of all, I'm sorry for my level of English . My question is, if there is any way to put a password to a door or vault?, thanks in advance.

    Of course there is. But first you have to make it clear what kind of game you're making.

    Is is like 100 Doors on Android/iOS where if you tap on a door a small dialogue box would open for your to put the code in?

    Is it a PC game where you can enter the code via keyboard input?

    Is it a top down game where if your character sprite collides with the door it will allow you to enter you password?

    In either case it's just a matter of matching a 'right password' string with another string consisting of each element whatever you've input.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • > First of all, I'm sorry for my level of English . My question is, if there is any way to put a password to a door or vault?, thanks in advance.

    >

    Of course there is. But first you have to make it clear what kind of game you're making.

    Is is like 100 Doors on Android/iOS where if you tap on a door a small dialogue box would open for your to put the code in?

    Is it a PC game where you can enter the code via keyboard input?

    Is it a top down game where if your character sprite collides with the door it will allow you to enter you password?

    In either case it's just a matter of matching a 'right password' string with another string consisting of each element whatever you've input.

    The game will be for android, and the code will have a word which you will have to decipher by putting the letters with an arrow and selecting the letter in each position, at the moment it will only be a door. Thanks again for the reply.

  • I am assuming you are using sprites for your lock so you will need to determine when each sprite is set to the correct letter.

    On spritelock1 animation = "OneRight" add 1 to LockOpen

    Do that for each sprite and when LockOpen=6 they have solved the lock and the door opens.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)