How do I add "Game Over" when game is lost?

0 favourites
  • 4 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • Hey!

    Ok, so the title pretty much says it, but I'm wondering how I can make a big "Game Over" text pop up when the player in my game is shot? I know how to make text and change fonts, size, colour etc. I'm very new to this, and this exact question may already exist, but I couldn't find it anywhere. <img src="smileys/smiley17.gif" border="0" align="middle" />

    So my game is basically a spaceship shooting other spaceships. When the other spaceships collide with your spaceship, you lose. Pretty simple. I'm doing a media course in school and our task was basically to make a simple came with Construct 2, so yea. <img src="smileys/smiley1.gif" border="0" align="middle" />

    I'd really appreciate it if anyone could tell me how to do it. Thanks. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey Linnea,

    Thats a fairly easy thing to do once you have your head around the basic concepts. Its like if you were explaining your idea to a friend, you need to tell the game all the same rules.

    When your spaceship hits a bullet you could have a simple event like : Spaceship On Collision with bullet -> Spaceship, destroy.    

    If you want your Spaceship to have to health - you need a way to track that health. Add an instance variable (to the player object) or a global variable to keep record.

    Now that same event above might look something more like :

    Spaceship On Collision with bullet -> Spaceship, subtract 1 from health.

    If you have created a game over sign and werent going to have health then maybe something like:

    Spaceship On Collision with bullet -> Spaceship, destroy.

                                             -> Create Game over Sprite at X,Y.

  • Alternatively, set the 'Game Over' object as invisible and position it where you want it to appear on the layout.

    On start of layout -> Set 'Game Over' Invisble

    Spaceship On Collision with bullet -> Spaceship - destroy.

                                       -> Set 'Game Over' Visible

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you guys so much! That was very helpful.<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)