Pause & Restart game

From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hey guys,

    I'm new to Construct 2 - I've been trailing around the internet for tutorials and help to create what I have so far, which has been very helpful. Although I can't seem to find anything to help my latest problem. I'm creating a money drop sort of game where the player has to catch objects to proceed onto the next stage, although I can't seem to figure out or make my game pause when the player has no health - so the high score doesn't get decreased by any enemies after you already die. Then display a message, and ask the user to use an input to restart the game. Ive tried a bunch of different tutorials out there, such as Rex's pause plugin but no luck so far!

    This is what I have - imageshack.us/photo/my-images/812/codesofar.jpg

    I can't seem to figure out how to pause the game - and also the game will not make the button appear when the players health's variable is below 10.

    Any help on this would be very much appreciated! I understand its probably a bit of a noob question.

    Many thanks guys!! Have a good Easter

    Lewis

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add another condition to the collision with the enemies and check if the health is bigger than 10.

    The reason why the button won't appear is because you've set it to invisible, you need to set it to visible.

  • Setting the game's timescale to 0 is usually a quick and easy way to pause a game.

    Delta-time and framerate independence

  • That's great thanks guys! I will give it ago! <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)