ErvinGamez's Forum Posts

  • Sorry for the long title.

    Basically, what I'm looking for, is when you wait a few seconds at a layout, something happens. But I also have a button that changes to a different layout, and there's a button there that changes to the previous layout. The problem about this, is when you switch to the layout with the wait command, it resets, so the player can just delay the wait command by rapidly clicking the button. I have tried alot of things to fix this but I couldn't get it fixed. Thought I'd come here to get some help.

  • Thanks guys, I found the choose command right after I posted but thanks anyways!

  • Hey, simple question, title tells it all really, how do I set a variable value to either (for example) 1, 4 or 6? Right now I set it as random(1,6) but I don't want it to be set to 2,3 or 5. Thanks.

  • Okay, I fixed it. I did a really stupid thing with the textboxes, the whole text couldn't fit in, so it disappeared.

  • if he dies set your new highscore to webstorage and if it switch to another layout you load the highscore again over webstorage

    It didn't really work.

    Either that or I'm just really tired.

    On the "Lost" layout

    On the "Game" layout

    Did I do anything wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • if he dies set your new highscore to webstorage and if it switch to another layout you load the highscore again over webstorage

    Ah, okay. I'll try this and I'll come back to you.

  • Okay, so I'm making a game with scores and everything. The game is fully done but I also need to do a personal highscore system, where you can beat your own score (You all know the concept of highscores, right?). I tried to do this with WebStorage, but when you die and it goes to the other layout, the HighScore text disappears. I am good at Construct2, but I have no idea how to fix this. Tell me if you need any more information and sorry for any grammar mistakes, I'm pretty tired.

    EDIT:

    By personal, I mean offline, the score is yours.