Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

help to make advanced locks

Hi there,
I'm trying to make an advanced lock picking system.
It should work like this

there are 4 different lock sounds
for each sound a different key should be pressed

for example
sound1 --> press Up
sound2 --> press Down
ecc...

so when you start you insert the picklock and you hear the first sound and you mst press the relative key.
If the key is right you hear the next sound and so on
If it's not right you must start again

That's what i tried to do , i know it's stupid and full of mstakes but i just discovered this command and i don't know how it works :s


http://img523.imageshack.us/my.php?image=lockyr6.jpg[/IMG]

Doing like this the event stops after playing the first sound.
In the following event page there is the opened chest with self switch A

Can you help me please?
 
Done. Unencrypted and fully commented.

A warning though: especially if you're going to use more than 4 sounds, it's insanely hard to open chests without using up a couple thousand gold on lockpicks. I had to try a bunch of times myself until I opened my first one. Used over well over 10 lockpicks I think. It's quite simple and addictive though. :)

http://www.mediafire.com/?asmytsgdvd8
 
the problem wih what you did, is the conditional actally says:
IF Down AND Up And Left AND Right are continuously pressed, and in that order, THEN turn self switch A on.

Haven't tried Heavens solution yet, but he probably did it right, so I wont bother explaining how ot do it :)
 
AceJP;291028 said:
the problem wih what you did, is the conditional actally says:
IF Down AND Up And Left AND Right are continuously pressed, and in that order, THEN turn self switch A on.

Haven't tried Heavens solution yet, but he probably did it right, so I wont bother explaining how ot do it :)

I already send my demo ^_^
hmmm hevendor's demo is better
 
Thanks everyone you really helped me a lot. i've chosen hevendor's one because it is perfect as i imagined it.
For the problem about opening chests in game , there will be a man on the thieves guild who will explain to the player the lock sounds and the relative keys to press.
I will not use more than 4 sounds ,there will be 10 lock levels + a magic lock level and the relative lockpicks for each one , every lock level will have his number of moves to do (ex lvl 6 = 6 moves to open etc)


Thanks everyone for help
I hope this could be useful to your games too
 
psychochild;291119 said:
Thanks everyone you really helped me a lot. i've chosen hevendor's one because it is perfect as i imagined it.
For the problem about opening chests in game , there will be a man on the thieves guild who will explain to the player the lock sounds and the relative keys to press.
I will not use more than 4 sounds ,there will be 10 lock levels + a magic lock level and the relative lockpicks for each one , every lock level will have his number of moves to do (ex lvl 6 = 6 moves to open etc)


Thanks everyone for help
I hope this could be useful to your games too

You'll need to edit my system quite a bit for that, just PM me if you need help.

And yes, it will be useful to my game(s). I never thought something so simple as a guessing game could be so fun. =D

Glad you liked it.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top