How do I Check All drag/drops complete / restart

Get help using Construct 2

Post » Fri Jul 25, 2014 11:53 pm

Hello: I have 7 drag and drops, if they are all 'completed' I'd like to show a text message stating that, then offer the user a button to 'restart' the game.

Is there any type of system variable that can detect if all drop/drops are completed, or do I need to use a var to tabulate a total score and go off of that?

Also if I create a button called 'Restart' is there an event I can use to reload and initialize everything to restart again? I'm a newbie here... maybe I missed this but I'm thinking perhaps C2 has a built in function to 'start over'. ;)

Thanks!
Ronm
B
5
S
1
Posts: 28
Reputation: 327

Post » Sat Jul 26, 2014 1:23 am

ronm wrote:Hello: I have 7 drag and drops, if they are all 'completed' I'd like to show a text message stating that, then offer the user a button to 'restart' the game.

Is there any type of system variable that can detect if all drop/drops are completed, or do I need to use a var to tabulate a total score and go off of that?

Also if I create a button called 'Restart' is there an event I can use to reload and initialize everything to restart again? I'm a newbie here... maybe I missed this but I'm thinking perhaps C2 has a built in function to 'start over'. ;)

Thanks!
Ronm

example.capx

Here's the capx example of what you want to do, and a little explanation in it. It's easy to understand what's going on there.
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Mon Jul 28, 2014 9:51 pm

Hello Sisyphus:

Excellent! Thanks very much for that example... you saved me a lot of time...much appreciated.

I think I've got it figured out now.

RonM :- )
B
5
S
1
Posts: 28
Reputation: 327


Return to How do I....?

Who is online

Users browsing this forum: joedman593, tarek2, Twili and 2 guests