Solid Behavior

0 favourites
  • 6 posts
  • It seems to me that the solid behavior relies on the bounding box of an object, not it's collisional polygon. is there a way to fix that?

    thanks,

    Allan

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ya... no have polygon collisional. Only bouding box, no?

  • Example capx

    In the image editor, click the shape button on the left under the origin button, and right click on the image.

    For the sprites I used I "Guess the polygon shape", since the geometrical shape is simple enough and doesn't require more than 8 points.

  • Oops, my bad. I was wrong, the solids do have polygonal collision. but solids only work with objects that have the platform or 8-direction behaviors. i was programming movement through the event sheet (not using behaviors) so the solid behavior didn't work: things went right through. perhaps the dev team will fix that next release. for now, i have added an 8-direction behavior, put the default controls to no (making it useless) and collisions work :D. thanks guys!

  • i was programming movement through the event sheet (not using behaviors) so the solid behavior didn't work: things went right through. perhaps the dev team will fix that next release.

    This is by design! Only behaviors react to Solids automatically. Each behavior reacts differently to solids. If you move objects by events, Construct 2 doesn't know what kind of movement it is, so it doesn't know how to respond to hitting the solid. If you move objects by events, you also have to handle collisions with solids by events.

  • ooh, that makes sense now. :D

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