How do I make it detect collision inside a circle?

0 favourites
  • 7 posts
From the Asset Store
You can change amount and speed of circles, length of lines and etc. Only 6 events.
  • Hey guys,

    I need to make the red area on this object (image attached) detect collision, is that possible? Collision polygon only detect collision around an object, not inside.

    Thanks,

    Dan

  • My solution for this would to use a second object and mount them together.

    Make the red inside the gray a separate object so it handles it's own collisions.

  • My solution for this would to use a second object and mount them together.

    Make the red inside the gray a separate object so it handles it's own collisions.

    I would but that would contain to many collision points. The object is continuously rotating, I would make separate little objects but then I can't make them rotate together with the main object. I don't know any easy way of doing this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As Sargas said, you can use an other object (with small size and low point count) to build an interior and exterior frame that detects collisions. Use the Pin behavior to make the instances of this collision object follow and rotate with your Sprite.

    A high detail collision polygon however won't be inefficient if there is only one object. Even if there are many, if not on screen at the same time, you can disable them and only activate the rotation, collisions and physics when they are on screen, thus gaining performance.

    Here is an example using both methods at the same time. I don't know which is more efficient, you can play around and figure it out

    http://www.eli0s.com/Tests/Rotator.capx

  • i eli0s thanks for that, your capx doesn't seem to work on my C2. It says I need to download the latest version. You must be using the beta.

  • Thanks eli0s and Sargras, I got it sorted. I created another object, created many instances and pinned it to main object.

  • dankhan , yes, I use the latest beta. Glad you sorted it out anyway!

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