RESET and EXIT screen, after the end of play

Get help using Construct 2

Post » Fri May 02, 2014 5:29 pm

Screen with RESET and EXIT buttons after the character's death (end of game).
B
17
S
1
Posts: 89
Reputation: 1,259

Post » Fri May 02, 2014 5:38 pm

You can make invisible sprites in the middle of the screen and set the collision disabled , and when the player die the sprites get visible and the collision enabled.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri May 02, 2014 5:49 pm

A0Nasser wrote:You can make invisible sprites in the middle of the screen and set the collision disabled , and when the player die the sprites get visible and the collision enabled.


It turns out that the buttons (sprites are) still works when I play / clicked on the screen.
B
17
S
1
Posts: 89
Reputation: 1,259

Post » Fri May 02, 2014 5:55 pm

Set the Buttons sprites collision to disabled, So you can't click on it, Then when the player die set the collision to enabled, Now you can click it.

In the the event sheet make this :
On start of layout-------set the buttons collision to disabled

When the player die-------set the buttons collision to enabled

---------------

You can set the buttons to invisible then when the player die set visible.
Or
Set the opacity to 0% then when the player die set the opacity to 100%
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri May 02, 2014 7:03 pm

post your capx, i think you have a mistake in the event sheet.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun May 04, 2014 3:06 am

A0Nasser wrote:post your capx, i think you have a mistake in the event sheet.


I put in dropbox, please complete the address with the piece below:

******/s/zb9lz6drqv8sze8/projeto123.capx
B
17
S
1
Posts: 89
Reputation: 1,259

Post » Sun May 04, 2014 6:50 am

you have to make buttons or sprites, and then in the event sheet you have to program them generally on add event---sprite 01 (or the name you put to the sprite)--- add action---system---restart layout (for example, there you might choose what ever you want. Hope this helps you out!
B
6
S
1
Posts: 47
Reputation: 518

Post » Sun May 04, 2014 11:26 am

You can destroy the buttons on start of the layout.
And when the player die, make an event that create the buttons on the middle of the screen.

I'm sorry i can't open your capx, there are plugin that i don't have.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun May 04, 2014 6:50 pm

A0Nasser wrote:You can destroy the buttons on start of the layout.
And when the player die, make an event that create the buttons on the middle of the screen.

I'm sorry i can't open your capx, there are plugin that i don't have.


I created a sprite that serves as a reference point, and let the RESTART and EXIT buttons off the screen, when "Life = 0", these buttons go to "same position of another object = buttons". Seems to be working well.

Thanks for helping me.
B
17
S
1
Posts: 89
Reputation: 1,259

Post » Mon May 05, 2014 10:29 am

This is great.
There always many ways to solve the problems.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests