Help

Get help using Construct 2

Post » Wed Feb 26, 2014 10:42 am

Hello, I have a two balls (blue and yellow)
Image
When I throw the ball on blue destroyed hitting the blue, but it rebounds with two yellow explode too, I just want to explode when I throw the ball of each color.

Not if I explain.
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Feb 26, 2014 4:16 pm

:roll: :cry:
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Feb 26, 2014 4:22 pm

Sorry but could you try to explain it more, or you share a simple example describing your problem ? I don't understand a thing you said, but the fact that balls are thrown...
I could make a joke about having two balls of not-so-natural color, but that wouldn't fit... (or would it ?) :oops:
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Wed Feb 26, 2014 7:28 pm

I want my red ball when it launched just explodes with red, but to kick the red, two yellow collide, I want these two balls do not exploit.
https://www.dropbox.com/s/mt92rduq2ohyy1z/test.capx
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Wed Feb 26, 2014 7:38 pm

Ok, let me try to describe what I understood, tell me if I'm right.
You want :
- if a yellow ball hits a yellow ball, both balls are destroyed
- if a red ball hits a red ball, both balls are destroyed
- if a red ball pushes a yellow ball, and if that makes the yellow balls touch, nothing is destroyed
- if a yellow ball pushes a red ball, and if that makes the red balls touch, nothing is destroyed
Am I right ?
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Thu Feb 27, 2014 12:04 pm

Exactly, how to do this? :P
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Thu Feb 27, 2014 12:17 pm

You need to save in a variable what was the last ball thrown. If it was red, then the event with yellow balls collision has to be deactivated. If it is yellow, the event with red balls collision has to be deactivated.
You'll find your project modified with this change as attachment.
You do not have the required permissions to view the files attached to this post.
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Thu Feb 27, 2014 2:31 pm

Guizmus
Thanks, this perfect :D I have a doubt like me you can solve.
When click-on red ball and drag the mouse over the yellow ball I was throwing all the balls. How could I fix this? I tried to change the system of mouse but not work.

Sorry my English is very bad :(
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Fri Feb 28, 2014 11:34 am

Help :(
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sat Mar 01, 2014 1:03 pm

cesarzevil wrote:Guizmus
Thanks, this perfect :D I have a doubt like me you can solve.
When click-on red ball and drag the mouse over the yellow ball I was throwing all the balls. How could I fix this? I tried to change the system of mouse but not work.

Sorry my English is very bad :(

:roll: :cry:
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests