Multiple hitbox in one Sprite

0 favourites
  • 7 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • Hi! this is an idea that i think will help a lot of users creating fighting games, the idea is simple,

    construct 2 already have collision polygons but you can only add one per sprite, so i think it will be awesome

    to add more than 1 hitbox, i know you can code hitboxex by putting other sprites but that will end with a game

    fully of sprites.

  • You can add other hitbox sprites to a container with your player so, when you create the player then all of the hitboxes are created as well. Careful positioning of image origin points will ensure they are positioned where you need them - then just use On Created (player) to pin each hitbox to the player. Not multiple collision polygons, but it's really just the same thing IMO.

  • but those hitbox will be sprites??? if are sprites you will end up with a game full of files and very fat files.

  • You only need a few and if you're concerned about memory or download then just make the image 4x4 and then stretch the first instance to whatever size you need so the others that are created will be that size as well. If they are set to invisible then they will not use any GPU time. So far for Umbra I'm using 9 sprites as sensors that move with the player to check for various collisions or overlaps with the scene... Total memory used is negligible .

  • Colludium .. OT but, you're a biker? Biker that makes games? Hi five.

  • Hey krish - high five back! That pic was taken a couple of years ago... I'm currently 'enjoying' a holiday from biking because there are no race tracks near where I live. But it never leaves your soul!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey krish - high five back! That pic was taken a couple of years ago... I'm currently 'enjoying' a holiday from biking because there are no race tracks near where I live. But it never leaves your soul!

    haha, yup. It's irreversible once it gets in Hope you find yourself to tracks soon.

    I was cross-country & international touring and all till now, and no track here too, until recently there opened a small chicane circuit... not a fast track but just works

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