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
Posts: 19
Reputation: 770

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
57
S
19
G
9
Posts: 639
Reputation: 9,533

Post » Thu Jul 05, 2012 9:47 pm

"And" expression?

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

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
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

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
57
S
19
G
9
Posts: 639
Reputation: 9,533

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,679

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
57
S
19
G
9
Posts: 639
Reputation: 9,533

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, Kenthria, plinkie, R0J0hound, Syazanie Amirin, tarek2 and 10 guests