Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Game over scene

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16395

    Patricia

    Hi, I’m doing a multi-level game, but I have a problem… I want to add a game over screen to my game. It would be that when my lifes are zero then the game over screen appear and this screen should have the score and two button, with one of them I could restart the levelĀ and with the other one I could quit the game.

    I was checking the example games but I couldn’t do it.

    I hope you can help me and say me how I can do it.

     

    Thank you a lot.

    #16402

    Alex
    Felgo Team

    Hi Patricia,

    this highly depends on how your game and your scenes and levels are handled at the moment. We feature a tutorial about one very common way of doing this: https://felgo.com/doc/howto-multi-scene-multi-level/

    Wild guess for your game: You basically have 2 options, either introduce an own gameover scene or just an overlay inside your game scene. If your lives are zero (you can add this check wherever you are reducing your lives), you can then either switch the scenes completely of just show the overlay. Anyway you should stop your game logic at this point. If the users chooses to restart the level, you will have to reset your game logic and then either switch back to the game scene or hide the overlay depending on your implementation. If the users wants to quit, switch to the menu scene in any case.

    Again, this totally depends on how you implemented your game so far.

    Cheers,
    Alex

    #16403

    Alex
    Felgo Team
Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded