How do I reset the game when the player lose?

0 favourites
  • 6 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • How can i to reset the game when the player lose?.

    I tried the sentence restart layout, and start again, but not from beginning, and i need that the game is restart tottally

    How can i do that?

    Thanks

  • crynof Try this,

    On the last even before you trigger "restart layout" reset all your variables.

    Im guessing that the user is acquiring points or something that is not resetting? you need to tell the system to reset those before you restart the game.

    hope this helps

  • i reset the variables and now works.

    Other question.

    How can i do to after x second where the player not collision a object, is to be destroyed?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How can i do to after x second where the player not collision a object, is to be destroyed?

    This question is very unclear, but it seems like you'd want to add either the timer-behaviour or a regular countdown timer,

    many examples on how to use and/or create this can be found throughout the forum..

  • Sorry for my English,

    The question are after x seconds the player does not collide with a box, is destroyed.

    I tried with system condition "every seconds", but i have a problem with the sentence "when a player on collision with a object", because this is only primary event and not a subevent, and i need to put like subevent to after invert . This way when the player after x second does not collide, is destroyed.

    Exist other way??

    Thanks

  • You can invert the "player is overlapping" condition or just use else like below..

    Together with the timer behaviour it would be something like this:

    player is overlapping box

    stop timer "KillTime"

    else

    trigger once

    start timer "KillTime" for x seconds

    on timer "KillTime"

    game over

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