Ball is trapped between 2 objects

Get help using Construct 2

Post » Thu Jul 05, 2012 9:40 pm

Thanks sqiddster, I think I will try the overlap :)

And Joannesalfa Thanks you were helpful
B
5
S
1
Posts: 19
Reputation: 920

Post » Thu Jul 05, 2012 9:44 pm

Use the "And" expression to qualify the destroy event:

Is overlapping Circle 1 - - - Destroy Ball
And
Is overlapping Circle 2
And
On collision with Object
B
64
S
25
G
10
Posts: 658
Reputation: 10,850

Post » Thu Jul 05, 2012 9:47 pm

"And" expression?

I never heard it...
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Thu Jul 05, 2012 9:53 pm

Is that you mean?



I don't think "And" expression exists on this editor, just use 3 conditions in an event. I believe it's called "And blocks".

Don't mind about these objects on this screenshot, it's for an example and i made a typo :PJoannesalfa2012-07-05 22:00:14
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Thu Jul 05, 2012 9:54 pm

Was my poor explanation! To my knowledge any event with multiple conditions is using logical And by defualt, unless you specify logical Or.

tl;dr: Add multiple conditions
http://www.scirra.com/tutorials/292/guide-to-construct-2s-advanced-event-featuresMr E Bear2012-07-05 21:54:51
B
64
S
25
G
10
Posts: 658
Reputation: 10,850

Post » Thu Jul 05, 2012 10:12 pm

Yes, the AND is implied when there are multiple conditions.

I still wonder if there is way to tell how much an object is being 'crushed'... Could be very useful! I can think of a way to do it manually with only circular objects, but nothing else... Hmmm...
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,709

Post » Thu Jul 05, 2012 10:22 pm

You could assign a weight,threshold and contact variable for each object: Events would run a quick check on overlapping objects; the contact variable would be the sum of any overlapping objects weight variable: If the the contact variable of an object is greater than the threshold variable of an object; it's destroyed.

Should work?
B
64
S
25
G
10
Posts: 658
Reputation: 10,850

Previous

Return to How do I....?

Who is online

Users browsing this forum: Hyune, Julot135 and 24 guests