How do I get these Spheres to Switch to Immovable Correctly?

Get help using Construct 2

Post » Wed Jun 15, 2016 5:51 pm

Hello Friends,
I'm trying to do the following;

If object Sphere (Bullet) Overlaps with object Freezer (Physics Object), make that sphere Immovable.
If another Sphere comes along and collides with the newly Immovable Sphere, make that Sphere Immovable also upon collision and so on...

So that the Spheres start to form these Immovable clusters, that begin to affect gameplay.

What I have so far in this event sheet does not work, but has the basic is idea in place.
If Sphere hits Sphere, AND that Sphere that is being hit has an updated Variable that can be read by the Sphere that is coming in, then make that Sphere Immovable also upon collision.

Image

The problem I think, is that I'm not appropriately defining which sphere is which, to the engine.
And that is the beginning of why I am asking for a bit of help, or direction.

I'm currently learning all I can in regards to instance variables, and arrays but am getting nowhere fast.
I don't even know if that is the correct direction.

Any help or guidance you can provide will be greatly appreciated.

Thanking you in advance, thank you, thank you, thank you, thank you, thank you, you are awesome, thank you.

This should be a DropBox link to the CAPX I hope...
https://www.dropbox.com/s/lqoaxj182n1tjod/Sphere%20Cluster%20Test%2003.capx?dl=0
B
5
Posts: 2
Reputation: 229

Post » Wed Jun 15, 2016 6:57 pm

Just create an object, so you can check collissions with a differend object.

https://www.dropbox.com/s/ixwocnm23a6vo ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Jun 15, 2016 7:46 pm

99Instances2Go
Thank you, you are awesome, and fast.
I have to say, smart solution also, I was heading off into way over-complicated land, so thank again.
B
5
Posts: 2
Reputation: 229


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests