Need Password for open

0 favourites
From the Asset Store
10 Orchestral Soundtracks / ~2 mins each / 11 audio clips in total
  • Hello i want to create somthing at my game example if player click on Spride he need to do one password example aldo so goto layot its posible this?

  • Yes.

    You could try something like this:

    give the sprite an instance variable password. On sprite clicked create a textbox. compare text from the textbox with sprite.password. if its the same change layout.

  • LittleStain can you give more detail??? I think I can figure it out but I'm not sure about the text box part. I'm trying to do something like this myself.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wouldn't use this to protect anything important; if its just a game feature that's fine, but you can find the variables and passwords your storing in c2runtime.js rather easily and depending on your export type that might be a problem.

  • Noncentz705

    What I'm trying to do is when you finish a level you get an unlock code and then when you go back to the menu and you've already finished a level you can type in the code to jump to levels you've already played.

    Thanks

  • Well if cheating is the point, then that's perfect. <img src="smileys/smiley36.gif" border="0" align="middle" />

    Here's a simple capx that might help you get started. It answer's the o.p's question more than anything, so you'll need to edit it to fit your needs.

    dl.dropboxusercontent.com/u/139218609/examples/login.capx

  • Noncentz705    <img src="smileys/smiley1.gif" border="0" align="middle" />

    It wouldn't be cheating it's just to keep the higher levels locked for new players but for players who have already done the levels and gotten the code for the next level can unlock all the levels they have completed without starting from level 1 to re-unlock.

    I hope I'm making since but either way I thank you very much...

  • ALLMarkMade

    This way it's good if you want to use it just as a way to jump from one level to another and not a way to "block" something: if the password is stored in the game, players can just spread the voice each other... :)

  • Jeff Skyrunner, Noncentz705 - I took a look at the capx and could not figure out how to implement what I want to do.

    What I want is like a coupon or credit code.

    I have 5 levels, all the menu buttons are disabled but level 1. When you complete level 1 you're given a code to unlock level 2, when you complete level 2 you get the code to unlock level 3 (Which will also give you access to the lower levels you've already completed.

    So a button and a text input. you enter the level code and and click the button and it enables the button for that level.

    I have 5 levels so far and they get harder as they go...

    Sorry to hijack this thread but I think Aldo Tankuu and I are looking for the same thing.

    Thank you in advance.

  • Any chance you could send a capx as a starting point and I'll help adjust it?; It's hard to provide a working example in this case, without having some kind of game mockup already made.

  • ALLMarkMade

    If you want to be the only one to give the code to unlock levels, this is not the best way... let me do an example to better explain myself: I am the first player to finish level one, so I need the password for the level two. If this password is given in the game no problem: it's just like the 90's games, when at the end of each level you received the code to jump directly to that level.

    If, on the contrary, you want the player to send you an email and ask you the secret code, than this system cannot work: if you give me the code, I can give it to others...

    I do not know if it's clear what I mean :)

  • Jeff Skyrunner, Noncentz705 - Yes it is but that's not quite what I'm up to... And I'll try to explain it better. I have all the buttons disabled except level 1. If and when you complete level 1 it will give you a code to unlock level 2. When you complete level 2 it gives you a code to unlock level 3 and so on.

    Keep in mind that once you complete a level the next level is automatically unlocked when you go back to the main menu board. The code is for when you close the game it reset back to only level 1 unlocked, but if you've earned the higher level codes you can start at the last level you completed.

    I did not want to figure out the arrays and how to unlock each level and keep it unlocked the next time you start the game. I don't have the full version yet (TAX TIME BABY!) so I'm right at 100 so I came up with this method instead and I thought it would be something different to try.

    Here is the game have a look and you'll get a better idea of what I'm trying to do with the input code.

    Grave-N-Go

    And as you will see I could not figure out how to get the loader bar thing to work so I just made my own way of doing it.

    I hope this helps and thank you for your time.

    I also want to give a big shout out to Przemek32767 for helping me get my gravity method going. I tweaked it alot but credit goes his way for getting me started.

    Here is the link to the basic started capx if you want them.

    GravityFlip Capx

    Have fun

  • ALLMarkMade, just a heads up... the link to the capx you shared is invalid.

    I made a quick example for you, any questions just ask.

    dl.dropboxusercontent.com/u/139218609/examples/unlock.capx

  • Noncentz705 Thank you very much for the help it's much appreciate.

    I checked the link and it seems to be working, it's a link to the actual game on my website, but I've since loaded it to the arcade.

    Please take a moment to have a look because I really want you to see what I'm trying to do with the levels.

    Grave-N-Go Game Here

    Thanks again.

  • ALLMarkMade, it's the second link, with the capx that's broken.

    I wanted it so I could just incorporate the level unlock system for you, but instead I had to create that example. Hope it's enough.

    I had checked out the game yesterday, I like it. Is what I provided not close to what you're trying to do with levels?, I based my example slightly off your game demo.

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