lionz's Forum Posts

  • If you use Shuffle then this should be easy, just start from the first row and work your way down. If it's a more permanent kind of storage you are looking for like if a player is collecting things then you can use two arrays, delete from the first one and move to the second one.

  • Sounds like a crash ? You could maybe enter a bug here github.com/Scirra/Construct-bugs/issues

  • Think of it like an excel spreadsheet, your items are stored as a list of rows with each column having the different stats per item. When you search for 'Armor' you are locating a cell that has 'Armor', once found you are at an x,y. To find the other stats for that item you use that row (current X) and adjust the current Y to go to each column across the row.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Where you have curY it should be curX for the row.

  • Right ok thanks makes sense it is in the description just not in the game yet. I would add the tutorial in the game asap since you can't progress without it and seems to be a main feature. Also since you always need to use this jump I think it's a little fiddly on the other button maybe you can use S for this.

  • You have set up the saved items but you will also need to create the logic for spawning, which means checking and using the array, so do post here again if you have any trouble with that.

  • That looks right. Btw just in case you are just trying to create a save game here there is a simple option of system 'save'.

  • push back inserts a new row at the bottom of the array, which is what you need here, but it doesn't set all the values, instead you would see armor.x,armor.x,armor.x. So to set the Y and Z in columns 1 and 2, they are using set at X,Y.

    self.width is the number of rows and since the rows likely start at 0 index it needs to be self.width-1, basically self.width-1 is the number of the bottom row, the one you just added.

    So the logic above is saying - insert a new row (push back a value) which sets (new row,0) to armor.x, then set (new row,1) to Y and (new row,2) to Z.

  • Maybe it's just me but the wall jumping seems to be off, I can't get past the second jump

  • When the distance between the player and enemy is low less than 85, the enemy still has line of sight of the player so the first event will keep running. Maybe use a variable on the enemy to distinguish between walk and attack.

  • If freezing and continuing from where the game was ruins the gameplay in some way then store the outcome and display it to the user when they return, like the game is over and here is the result.

  • You'd have to share the project to help with this

  • Hi, that wouldn't be it, it would be a crash game. Have you ever played the Aviator Casino game? It's a real-time game, so the game shouldn't pause at any time.

    Casino games are complicated. One option maybe is to just show them the final result when they return after suspending the game, since many casino games use api with a known result and then display it to the player after.

  • I think Tatbarao might be trying to make an idle game or one of those games that relies on timers, like maybe those dragon breeding games? I'm not smart enough to know exactly how to do it, but if the game could store the real world time when a player leaves the tab, and then compare it to the time when they return, and then make changes based on that time difference, then it would kinda be like the game didn't pause.

    Nah it's some kind of real time casino game. If it was an idle game it is possible to do what you're saying by comparing time and I would've suggested this.

  • Everywhere I look even on outside forums it says suspending when switching tabs is expected and the only way around it is using hacky methods to override the browser, which isn't recommended.