lionz's Recent Forum Activity

  • On the event left block press C and add System > Trigger once

  • If you press a key to reload then that is a trigger once condition so you could play the audio there, or else you can add 'trigger once' condition to an event.

  • Are you saying the issue is fixed? If so, great!

  • Could be a few things. What comes to mind is the event sheet not linked to the layout so it's not reading the events. It could also be adding to a different instance if you have more than one. Lastly could be other events conflicting somehow and setting it back to 0.

  • > If that is happening I would move the AJAX request to a 'local storage save is missing' condition, not 'on start of layout'. So the flow is only to check if your save exists, if it doesn't then load those default values and if it does then load the save data.

    You, my friend, are a godsend. This worked perfectly! It's always the littlest of things give you the biggest hiccups, I swear. Thanks Lionz!! After hours spent finagling my local storage issues, you made my day!

    Nice, that's good :) It was a challenge to work it out from just the screenshot.

  • Ok so the problem is it's trying to play idle and walk at the same time. You'll have to add conditions to your idle animation that certain keys are not down.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And do you have an idle animation when the character is not moving?

  • If that is happening I would move the AJAX request to a 'local storage save is missing' condition, not 'on start of layout'. So the flow is only to check if your save exists, if it doesn't then load those default values and if it does then load the save data.

  • Do you have it set to play walk on 'is moving' because the player isn't moving. If it's set only on key press, do you have another animation set to play when you press up and down, like jump or crouch?

  • If it was a single word I would probably approach it by grabbing a position in the text using tokenat(text,var,"") where var is a random number between 0 and text.length. Then I would check that this value is not already a * and change it to *, else run the check again. With several words, I guess you expand this into first checking if value at position is equal to "" (a gap) and if so then run the check again. There might be a simpler way to run through it randomly but that would be my approach.

    edit : just noticed your example wasn't randomly filling in but in order so you would add 1 to var every 5 seconds, and set at tokenat(text,var,"") to *. Then when you come across a gap you could set to * if that's relevant to the design of the game, or skip it.

  • You already made the logic to spawn the platforms? You could assign a random number to each one and if it is a certain value then spawn an enemy.

  • Looks like the screenshots are from two different event sheets which is concerning. Depends on the order of events, can't tell from these screenshots. From what I can see loading that AJAX request doesn't depend on if you already have save data so it would always run it. My best guess is that you could be loading correctly from local storage then overwriting with the AJAX request.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 72 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies