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
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Thu Jul 05, 2012 9:47 pm

"And" expression?

I never heard it...
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

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
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

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
49
S
14
G
3
Posts: 540
Reputation: 5,611

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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
49
S
14
G
3
Posts: 540
Reputation: 5,611

Previous

Return to How do I....?

Who is online

Users browsing this forum: YoHoho and 11 guests