how to stop the game?

0 favourites
  • 2 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • Hi all,

    I have a few simple questions, i hope some of you can help me with.

    1. in my game, if the player "kills" all the targets i want the game to "freeze" and a text to appear with some message. While this text is on the screen the player should not be able to move / shoot. instead i want to bind the mouse click and any keyboard hit to a function that "loads" the next level.

    How is this possible?

    so to sum it up:

    i need to freeze the game, making the player unable to move or shoot (Solved with grouping and using the set group state.)

    i need to change the mouse click and any keyboard key to a new function when the game freezes.

    Last how do i change level to a new level with mouse click, when the player has completed the level (same mouseclick that i used to shoot when the game was not paused)

    Cheers from a total newbie :-)

    /Marcel

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As you already used groups, keep up with those.

    In your event "on mouse click" add a condition (right click-add a condition) system: "is group active".

    You can do now two events to have different behaviour when the group is active and when it's not (which represent two different states of your game).

    For the end level part, I think this topic can provide help.

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