Advanced Hitboxes

ADSentertainmentADSentertainment Member Posts: 397
edited June 2012 in Working with GS (Mac)
When making an actor collide with another actor, is it possible to make it so that instead of having a hitbox in a rectangular/circular shape, it would have a hitbox in the SHAPE of the actor, eliminating all of the transparent pixels in it. for instance, gamesalad does rectangular Photobucket and circular Photobucket hitboxes (I assume a circular hitbox looks like that). is it at ALL possible to make a hitbox that would look like this? Photobucket

Having trouble with your game? Sounds like a personal problem.

Best Answer

  • tutysestutyses Posts: 134
    Accepted Answer
    Not yet, but i read in the twitter questions that they will do in the future

Answers

  • robert.mccarthyrobert.mccarthy Member Posts: 165
    One way of doing it at the moment, is create a 'hitbox' actor. Put a rule to follow the position of your spaceship (dependent of where they are placed). Drag lots of this actor on the scene, resize each one to make them them fill the shape. Make them transparent.

    This works for the moment, I have used similar on other games/tests.
  • ORBZORBZ Member Posts: 1,304
    Pro Tip: If you use a circular collision area but your actor is not square in shape (i.e it's rectangular) then the hit area will be the radius of 1/2 of the shorter side. This can be useful in situations where you want to have a "forgiving" collision area as the longer side will not be fully covered by the circle. There are no oval collision areas, just perfect circles and rectangles.
  • ADSentertainmentADSentertainment Member Posts: 397
    One way of doing it at the moment, is create a 'hitbox' actor. Put a rule to follow the position of your spaceship (dependent of where they are placed). Drag lots of this actor on the scene, resize each one to make them them fill the shape. Make them transparent.

    This works for the moment, I have used similar on other games/tests.
    I could see how that would work, but yet it would be a rather large amount of actors and would probably lag the game from the amount of actors in each ship in a level.

    Having trouble with your game? Sounds like a personal problem.

Sign In or Register to comment.