Combination lock mini puzzle

  • #1, by andiliddellSunday, 22. June 2014, 03:08 10 years ago
    Hopefully the title pretty much says it all.

    Can anyone think of a efficient way of creating a combination lock puzzle with VS and LUA, where you would click each column of numbers to rotate in either direction, then press a "submit" style button to see if you chose correctly.

    Appreciate this might be a pretty complex task, but I'm very nifty with gfx and animation, and a decent coder too, if anyone can give me a few starting points, or has done this type of thing before?

    Many thanks in advance

    Forum Fan

    178 Posts


  • #2, by afrlmeSunday, 22. June 2014, 14:46 10 years ago
    Actually... Nige the guy who just said he's retiring from making games (via the home/portal page), wrote this some time ago. It's a lock puzzle script. It doesn't come with any actual instructions though... but maybe you can figure it out?

    It is also possible to do this via action parts, values, conditions & if queries inside the editor itself without having to resort to Lua script; the script method would save a lot of time though.

    The .ved & resorce files linked on the wiki page I linked above are no longer available it seems... luckily I have it on my hd, so I've just uploaded it to my dropbox account @ https://www.dropbox.com/s/1d8w45kxm7dlwy7/keypad.zip

    Imperator

    7278 Posts

  • #3, by andiliddellSunday, 22. June 2014, 18:15 10 years ago
    Thanks for this AFRLme, Ill take a look and see if there's anything I can learn from.

    I actually started on a method with repositioning of animations per click, which seems to be working pretty well. Once I've got something more solid I'll post my results.

    Currently Ive got three strips of numbers, hidden behind some other png graphics. Ive setup a new "menu" scene, to capture the left clicks on each dial, and am moving the animation positions in the y axis.

    It's starting to llok good, once i tie in some if statements and some logic it should be good to go.

    Thanks for the links

    Forum Fan

    178 Posts

  • #4, by andiliddellMonday, 23. June 2014, 17:01 10 years ago
    I managed to crack this yesterday, using a pretty nifty "no code" method, using only built in actions and statements in the editor, and some very specific graphics.

    It involved some planning and layout to make it work, but the end result works perfectly, and looks great with all of my finished graphics in.

    For the benefit of others, here's an elaborate info graphic showing how I went about it, so people can implement something similar themselves, and more importantly understand how it works so they can extend it themselves.

    I made this scene as a MENU rather than a SCENE to benefit from the built in mouse left click actions, and the hidden character, screen text and dialog.

    The rest of the logic was simple:


    • On left click of a button, check the current strip value, if its 9 or 0 move the strip right back up (or down) to its start position (so it looks like it loops)
    • update the value
    • Check the condition for this and other strips


    Rinse and repeat.
    Hope this helps someone out!

    Forum Fan

    178 Posts

  • #5, by afrlmeMonday, 23. June 2014, 18:06 10 years ago
    Rinse & Repeat... hmm you wouldn't happen to be a music producer by chance? maybe D'n'B orientated. I heard that saying a lot back when I used to run a music production forum.

    Anyway. Nice looking diagram mate. Very in-depth. wink

    I did say that it could be done without scripting code, didn't I?

    I think a video tutorial of this would go down a treat; if you are willing to create one of course?

    Imperator

    7278 Posts

  • #6, by andiliddellMonday, 23. June 2014, 18:38 10 years ago
    Not a music producer by trade, but I have been known to dabble over the years smile

    Thanks for the feedback, I'd love to do some video tutorials on this and some other topics I've learnt over the last 6 months of using VS, It's just finding the time to sit down, plan and record one.

    I used to do a lot of teaching, and my current full time job involves designing and programming software apps and animations, so sharing knowledge is something I enjoy.

    I was really hoping to put together a "demo game" for the V4 contest, with some video tutorials on creating each aspect of it, but I'm snowed under with "real" work and with trying to complete episode 1 of my own VS game.

    Once I've got some time I'll give it a shot.

    Is the V4 demo contest still going to go ahead?, and will the winner get a full enterprise/mobile edition for their troubles? that way I'd be happy to spend the weeks putting the work in razz

    Forum Fan

    178 Posts

  • #7, by afrlmeMonday, 23. June 2014, 18:42 10 years ago
    Only Thomas knows the answer to the competition... I've not spoken to him much over the past month or so as he was busy preparing for, & running his kickstarter campaign for: "The Mystery of Oak Island".

    I'm not sure what the prizes would be, but I suppose a pro/mobile license or a piece of software would be quite a good prize but like I said... I've nae clue about any of it right now!

    & nice one... I like helping people too, & all without charging an arm & a leg for it.

    Imperator

    7278 Posts

  • #8, by ke4Monday, 23. June 2014, 18:42 10 years ago
    Great work! :-) i like it.

    Key Killer

    810 Posts