How to fit collsion polygon precisely to sprites?

0 favourites
  • 3 posts
From the Asset Store
Build your map with these isometric objects and terrains
  • Hi guys, I'm wondering how to fit a collision polygon precisely to a sprite's actual shape instead of a square surrounding it, and how to cut off the background of the sprite itself because it's really annoying and ruining the whole game. Thanks a bunch!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For the first part, you have to edit the collision polygon yourself. See the manual article on the image editor.

    For your second question, you have to do this in an image editor. You should make your graphics with transparent backgrounds, and save them as PNG's. Otherwise, you could so something like use the magic wand to delete the background.

    Hope this helped!

  • Do you have some tool like paint.net or photoshop? To cut off the background of a sprite, you need to make the background transparent.

    To fit a collision polygon to sprite:

    Edit animations>Click set collision polygon icon>Right click sprite>Guess polygon shape

    But, I generally don't recommend setting a custom collision polygon to a sprite; especially if it's shape is irregular.

    Instead, pin an invisible sprite (a sprite that's completely transparent) to the general overall shape of a sprite (or have it mirror the object's x/y co-ords) and use that for condition chekcing with collisions.

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