how to stop the game?

Get help using Construct 2

Post » Sat Feb 04, 2012 6:58 pm

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 :-)
/MarcelMarcel Nielsen2012-02-04 21:03:26
Posts: 5
Reputation: 585

Post » Sun Feb 05, 2012 6:18 am

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.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Posts: 7,416
Reputation: 75,228

Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests