0 Favourites

How to fit collsion polygon precisely to sprites?

  • 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!

  • 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!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,397
RetroDaddy's avatar
RetroDaddy
Unread hot topic
106 35,970
Syazanie Amirin's avatar
Syazanie Amirin
Unread hot topic
86 28,726
St4rDu57's avatar
St4rDu57