How do I

Get help using Construct 2

Post » Sun Mar 02, 2014 3:07 pm

Wanted to when they explode all the balls of the same color leave the screen "You Win"

For example I have 6 red balls, and every two colliding balls are destroyed, when all the balls are destroyed appears text "you won"

try putting set value and comparable variable and did not work well, Any solution?


https://www.dropbox.com/s/mt92rduq2ohyy1z/test.capx
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Mar 02, 2014 3:20 pm

Just have an event that counts the number of sprites:
red.Count + spBall.Count + yellow.Count = 0
and display your message.

Families could do it with family.Count = 0, if all balls are in the family.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Sun Mar 02, 2014 4:27 pm

You can do so in the example above? I try to do, but I get the error
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Mar 02, 2014 4:30 pm

Update:
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Sun Mar 02, 2014 6:00 pm

I have a screen where it says score and semitransparent, but I get the black background and few fps. Why? :(
https://www.dropbox.com/s/r29w6wel88o7pt0/testtt.capx
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Mar 02, 2014 6:10 pm

Because you are constantly Creating the score, every tick! Add Trigger once.
ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Sun Mar 02, 2014 7:23 pm

Had another method, but I was the same and was the trigger once ...
Thanks for the help :D
B
11
S
5
G
1
Posts: 410
Reputation: 2,802


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 44 guests