gfresh717's Recent Forum Activity

  • I believe your mistake is that you don't wait for "On save complete" event. Saving takes some time and SaveStateJSON expression is not available immediately after you execute "Save game" action.

    So instead of the "ExitMenu" function use "On save complete" event.

    Sorry, I uploaded an older screenshot from my testing yesterday, I updated the post with what I have now. You're correct, I got rid of the ExitMenu function and put it all in On Save Complete. Thanks for your help, just the "on save complete" piece advice got me at a good spot!

  • There is a SCORM Plugin available: construct.net/en/construct-2/addons/85/c2-scorm-plugin/documentation

    However, our LMS is proprietary and was written by my manager, so he wrote his own Construct 2 plugin for me to use. Unfortunately, I don't know much about AJAX/JSON/PHP/API/LMS Development and he doesn't know much about Construct 2 or game development, so it's just been us trying to piece together a working game that will work on the LMS and save a student's progress.

    Ideally, when the student clicks the Exit button it will automatically save their progress, so they don't need to worry about manually saving progress. Here's what I've done so far that seems to work initially (I haven't done through testing yet).

    Menu Screen

    Game Screen

  • I apologize if this has been covered, but I haven't been able to find a straightforward answer after days of searching and playing around in Construct.

    I'm building a game that will be integrated into a Learning Management System (LMS), so I'm using a custom SCORM plugin since players will be high school students who are logged into their own accounts. They won't always be using the same computer/device, so local storage isn't a great option to save their progress in a game.

    How can I export the string of JSON of the saved progress/state? I bought this template (https://www.scirra.com/store/royalty-free-game-templates/json-export-import-encryption-1191), but it doesn't seem to export JSON string of the saved state/progress. Ideally, they'll click/press a save button and it'll send the current game state to our LMS and then when they log in again, they'll be able to load their last progress. I just don't know where that string of JSON goes when you use the built-in "Save" function in Construct 2.

    I can't seem to find solid documentation or tutorials on how to use "SaveStateJSON" and "Load from JSON", so any help would be greatly appreciated.

  • The best I could do was to add a platform simulation of jump and move right when the on-screen up arrow was pressed, which wasn't great at all. I think I may have to scrap touchscreen support for now.

  • I got the touch-screen arrow keys working, thanks to everyone who posted and helped me out. The only issue I'm seeing is that the character either walks or jumps, but doesn't jump forward. Any ideas?

    If you're on a touchscreen device, you can try the game here to see what I mean:

    gpanimations.com/MBSH_Beta2/index.html

  • Oooh okay. Thanks for your help! I thought you had to use the 8 point for touchscreen, I didn't notice the simulate control option under Platform.

  • Are they not needed? I'm just trying to support web browsers on both computers and touch screens.

  • I fixed the walking issues by saying if the player's platform is not moving and is facing right and if the right on-screen arrow isn't being touch, then play standing animation. This makes the player's walking animation happen with on-screen controls. I can't get jumping to work, though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sub events:

    if platform is on floor

    (sub)--right arrow is down

    --------- OR

    --------- is touching right arrow

    Thanks for showing me how to set that up

  • The problem with using "Or" events is that I'm checking to see if "Right Arrow is down" and "Platform is on floor" to determine if the walking animation should play.

    If I add "Is touching rightArrow" to it and make it an "Or" statement, it changes to:

    "Right Arrow is down" or "Platform is on floor" or "Is touching rightArrow"

    When I need it to be:

    "Right Arrow is down" and "Platform is on floor"

    -or-

    "Is touching rightArrow" and "Platform is on floor"

  • Oh sorry, the Every Tick method just contains something to check the players running speed. If they're running, they can jump a little higher. The Mobile controls aren't subevents on Every Tick.

  • I created a basic platformer game that uses the arrow keys to move and jump. It works great when the keyboard is used.

    However, when I tried to implement the "Detect Input" example that comes with Construct 2 and use the on-screen arrow input, my character no longer does the walking animation when moving left/right, nor can they jump. The character just glides side to side when the on-screen arrows are used.

    Any help is greatly appreciated.

    Here's a short video showing it: youtube.com/watch?v=tnCd3PL8sCo

gfresh717's avatar

gfresh717

Member since 14 Oct, 2014

None one is following gfresh717 yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies