lionz's Recent Forum Activity

  • System : every 1 second - add 1 to a global variable (score)

  • That file doesn't open. What you describe is fine but I'm wondering more about the method you said wasn't working, I don't see how it would be any different. With timer behaviour it counts down (1) and then you would say on timer : do something (2).

  • You should pick with the coin, change the overlap event to 'coin on collision with player'.

  • The global variables will not retain the value when you close the app, my point is that you only need to grab the values from local storage one time because you set them to a global variable while the app is running. You want to minimize the chance for bugs happening, load from local storage one time in a session not every time you change layout.

  • Is it resetting though? You didn't answer the question about what you're seeing to know it resets. In the records layout which I assume is the second screenshot you can just use the global variables there is no need to look again into local storage and also I think that would fix the issue.

  • You could delete the column/recipe so it can't be picked again. You can use 2 arrays I guess, one that stores the original data and one that you use to pick from that gets chopped down.

    There's also something called a permutation table under AdvancedRandom plugin where it creates a set of numbers in a random order, where it would generate from 0 to array.height(number of columns). You would select advancedrandom.permutationtable(0) for the first recipe and then (1) and so on.

    If you mean that you want ingredients to come out one at a time then you could have the column/recipe and run through each row, or if you mean randomly pick one at a time then you can create permutation as mentioned above for number of rows/ingredients.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can I get you to try my game a see if it works on your computer?

    '0 Newbie' should change the further you get. Thanks mate :-)

    You'll have to explain the game a bit more, the game always shows 0 newbie even if you are in a single session so that's nothing to do with saving it's just broken in your events.

  • You mean your game on itch? I tried it yes it's not saving or loading.

  • Should be automatic and just work. I've never had any problems with it on itch.

  • What else have you hidden in that condition because there's a sub part to it

  • Add a trigger once to the logic where you compare if player X is now greater or less than enemy X.

  • I'm not sure if this logic would even work, the itemvalue comes from a 'get' which you never use. Sure you are checking if the items exist in local storage but the problem might come when you set the global variable to itemvalue, the itemvalue could be 0. I assume you are seeing 0 if you say it resets. Also I don't think it's normal to be checking and setting it in two different places, why do this with duplicate logic?

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

  • 12-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

25/44
How to earn trophies