Collide with 'anything'

Get help using Construct 2

Post » Sun Mar 25, 2012 12:51 am


As I'm starting to add more and more layout stuff- my event conditions for exclusion are getting quite bloated.

Is there a way for example, to test if a sprite is overlapping "any" other spite with the "solid" behaviour?

At the moment, I'm having to add negated collision tests for each solid platform/object in the game in the conditions of the event.
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Mar 25, 2012 12:52 am

Add all the solid objects to a family, and apply the actions to the family instead?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Mar 25, 2012 2:51 am




In the old Click'n'Play / The Games Factory programs way back when, for platform movement you need only to check it was colliding/overlapping with a backround object, not to check through every object that was a background as it were which sounds needlessly complex.

I was asking rather if the following example is possible :

"If the object I am overlapping is a 'solid' , don't spawn a bullet"






Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Mar 25, 2012 3:07 am

I'd say Nimtrix's solution is the best.
CC used to let you be able to do the same thing as you described, but Solid was an attribute, not a behavior.

Make a family with the objects having the solid behavior, and check for the overlapping between bullet and the family.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: studio UNNAMED and 4 guests