619_RM's Recent Forum Activity

  • Okay, I'm kinda new to Construct. I want to display an URL (Twitter/Facebook profile or my website) to my user if they click a button from the MAIN MENU, then the whole screen should load the website (not externally)

    How can I do it? Please help.

  • I'm currently working on a platformer game I made it quite big so it always pain to test some of its areas, I have to play from start to that location in order to check any error in between, in another way we have to put the Player at our desired location so that the game preview would start from that particular location, but its pain to do this every time. Is there any way to accomplish this thing easier? Thank you.

  • The way i do it in my game is that every time the succesfuly finishes the level and unlocks a new one, i first add all this new data to the Levels array, and after that is finished, i save the LevelsArray as JSON into my Local Storage. You load from LocalStorage when you start the game either on the Loader Layout or on your Main Menu.

    So you need:

    .-A LevelArray object, it stores the level data included if it is unlocked or not.

    .-Local Storage object, you save into this each time you know the player unlocked something. You save as JSON, for example LocalStorage set key "SaveGame" -> LevelArray.AsJSON

    .- On start of layout either on Loader Layout or Main Menu, you ask for LocalStorage "SaveGame" key.

    .- On Load Storage get key complete action -> LevelArray Load as JSON -> LocalStorage.ItemValue (this returns the last data you asked for, in this case the JSON)

    Hope this helps!

    Thank you very much sachos345, I finally able to pull it off. :)

  • Have an array that stores what levels are unlocked, and save that to local storage. Then on game continue, load the array and the player should be able to continue progress from previous play.

    Thanks to your input LukeW

    Yes, that's where I'm bit confused, How and where to add the array to save it with Local Storage as I wanted Continue button to work independently because it was for the checkpoint purpose.

    Thank you.

  • The Google Drive link has been updated I accidentally added some extra events which wasn't needed at the first place this may the reason it was convoluted, Sorry about that.

  • Thanks for your input, pal.

    I want to retain both the continue button mechanism [The solution you gave in another post https://bit.ly/2KAGWrO] and the level select mechanism how could I mix both using the same save state. Could you please give any example capx/c3p or something? I really could not able to figure it out.

    Having said that I have made this WorldSelect using array by referencing a video from GameDev YT channel https://youtu.be/0M_kR6KehHY.

  • Oh, Thank you. :)

  • For like two-week, I'm getting a message "key is not defined" What does that mean? It not coming in just specific time/place it just comes randomly. It does nothing if I "close" it or press "OK" also it's not affecting any functionality of C3 but still getting this weird message quite often.

    Tagged:

  • Finally, because of you, along due query has been solved. Thank you very much.

  • I have made a platformer game which is having multiple worlds and for that, I've put LevelSelect layout and the level select mechanism work pretty well the only issue is when I restart the app (android app) all the unclocked level got locked again. I have seen multiple tutorials suggesting to use the "Local Storage" but couldn't able to figure it out yet. So, I have made a small c3p. Please check out the file and help me.

    Thank you.

    https://drive.google.com/open?id=1K-uZaHvPX_MNsCfzFTsbVzvyUisLAjom

    The Google Drive link has been updated I accidentally added some extra events which wasn't needed at first place. Sorry for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your input but sadly I couldn't able to crack it yet. I have made the c3p.

    drive.google.com/open

    Please check this out.

    Thanks.

619_RM's avatar

619_RM

Member since 1 Jun, 2019

Twitter
619_RM has 1 followers

Trophy Case

  • 5-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

9/44
How to earn trophies