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

0 favourites
  • 3 posts
  • 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.

    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

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

    https://www.dropbox.com/s/ixwocnm23a6vo ... .capx?dl=0

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)