How do I make player lose if he missed the whole ragdoll ?

Just started using Construct 2? Post your questions here

Post » Wed Apr 19, 2017 11:45 am

The Goal in this game to destroy all ragdolls (if you destroy just one part its ok you dont lose )

but i dont know how to make the player lose if he missed one ragdoll without being touched .

https://app.box.com/s/2qrcwkdjhx5mjl8k9jit95b8fmkgh07h
B
5
Posts: 12
Reputation: 249

Post » Thu Apr 20, 2017 5:34 pm

Have a instance variable boolean (TouchedVariable) for each of your objects that starts out as false. Add an action to set TouchedVariable to True for each part when any part of your ragdolls gets destroyed.

When you want to trigger the game over event, add the condition to pick all instances where TouchedVariable is False, and then use the system condition compare two values - Object.PickedCount > 0
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Tue Apr 25, 2017 7:42 am

oosyrag wrote:Have a instance variable boolean (TouchedVariable) for each of your objects that starts out as false. Add an action to set TouchedVariable to True for each part when any part of your ragdolls gets destroyed.

When you want to trigger the game over event, add the condition to pick all instances where TouchedVariable is False, and then use the system condition compare two values - Object.PickedCount > 0


Thank you very much my friend Problem solved :)
B
5
Posts: 12
Reputation: 249


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests