How do I make a Physics Sprite, with a hollow circle/square?

0 favourites
  • 3 posts
From the Asset Store
You can change amount and speed of circles, length of lines and etc. Only 6 events.
  • Hello! I've decided to work with C2 again for a new project (without MIDI lol) and want to make an Sprite by the name of "bounds", which with one animation is a circle, and the inside transparent, so only the border is showing, and the second animation is a square, with the same idea. They are both one-framed animations. I want to make it so when a different sprite, "smallCircle" (with physics on default settings) is on the inside of the "bounds" object (with immovable physics) that it can move, and then stops when it hits the border.

    I've tried using polygonal points, but just can't get it down, and it uses way too many points, + the lines overlap so physics don't work.

    Does anyone have any ideas?

    Thanks.

  • Pick whatever shape you want (in my example I'm using a circle)

    Create a sprite that has whatever shape cutout you want in it and cut it in half.

    Then make sure the image point is set to the right.

    Next edit the collision polygon to make it match your shape. (I used a lot of points, but you can probably get away with a lot less, especially if your shape has only straight lines)

    Now in the layout place 2 copies of the sprite. Set the angle of the one on the right to 180.

    From here it's as simple as giving the sprite the physics behavior and putting whatever physics object you want into it. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you sooo much!!! Can't believe I didn't think of this lol. You're a big help!

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