lionz's Recent Forum Activity

  • I would do it like :

    Correct clicked - push 'correct' to back of X

    Incorrect clicked - push 'incorrect' to back of X

    So your array may look like this

    Correct

    Correct

    Incorrect

    Correct

    Incorrect

    Then when the width is 5, i.e. 5 results in the array, you can begin to pop the array at the same time which removes the top result as you add a new result. This is then a list of last 5 results.

    If this doesn't help then what you mentioned 'Now i want to record last 5 play's result and next play have to add and remove previous accordingly.' needs to be better explained.

  • 'push' the latest click to X on a blank array, when the array width is 5, start to 'pop' one result from the array that removes the oldest as you 'push' the latest one to it.

  • Cool, both games look interesting!

  • This looks like something where you didn't need to use an array. I can't work out what you mean from the description though, maybe you could draw it or share something?

  • Assuming the object is destroyed when it explodes you can do :

    on X pressed with condition global var=0 : action=spawn grenade and set global var=1

    on grenade destroyed: set global var=0

    The problem with that is you are counting on it to be destroyed and may come across bugs when it doesn't get destroyed or something.

    You can also use a timer if that is relevant :

    on X pressed with condition timer=0 (on another object not the grenade) : spawn grenade, start timer

    Note you can't use the object for timer condition, use system compare 2 values, object.timer.currenttime("timername")=0

  • I would've done it a bit differently, just had one tile object where you change its type based on another instance variable. I'm not sure what your logic is for picking the starting (assumed player overlapping) and destination tiles, so cannot really see the problem.

  • Check this and the section on 'Changing the project after saving'. scirra.com/tutorials/526/how-to-make-savegames

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try a simpler game idea ^^. You can store the position of planets in an array. As for the on planet gameplay, it depends what type of game it is but everything I see about procedural generation includes the use of arrays so you'll most likely have to use them eventually.

    Maybe you should chat with this guy: construct.net/en/forum/construct-2/your-construct-2-creations-23/dark-ages-spatial-roguelike-rt-141827

  • Well the method doesn't really work for a game. If you load slot 1, then you have some planets. If you load slot 2 then you have some other random planets. But if you load slot 1 and play it and you have things like player health or items, then you load slot 2, you don't have this health or items it's a different game so it won't be continuous.

    It is a complex game, especially if you want it in one layout. Even if you store planet co-ords in an array and spawn the planets again based on these, you also need to store what happens when you enter one of these planets and then load that data too.

  • Well this looks like something different, it is loading a save slot each time so it would be a different game and you couldn't share data across it. Looks like you will need arrays for this to store generated data, I would start learning from the manual and tutorials.

  • So you don't have a game yet? I thought you were just asking how to retain data that you already made. Sorry, I don't have time to make such an example as creating many worlds in a single layout with random generation. That's not really a simple thing to ask for.

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