Stop Collision Polygon Resetting with re-import?

  • Sometimes I want to tweak the frames of art assets in my game, but the collision polygon resets when I replace the asset with the new one.

    The anchor point doesn't change (thank god), but I would love if you could have an option for the collision polygon not to move when you replace a frame with something slightly different.

  • Well, better to save X and Y references for each anchor before to change frame, sometimes in editor when we change a frame will reset collision due to image size.

  • I only reimport the same sized image.

    How do you save x and y preferences? or do you mean just remember them?

  • An option to keep the collision polygon would be neat indeed

  • I only reimport the same sized image.

    How do you save x and y preferences? or do you mean just remember them?

    <img src="http://i.imgur.com/G40QCTX.png" border="0" />

  • ^ so you have to remember them and type them in?

    Seems unintuitive, not that I'm complinaing, just would be a good improvement if they allowed us to keep the polygon and just change the image.

  • I don't know if Ashley would make a new feature to lock polygons.

    C2 automatically scans the new frame and guess the polygons, so please remember the computers do not see your frames, they are basically blinds.

  • A simple check box saying "save collision box positions" or something would be a nice addition when loading new assets.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This would be super useful! I replaced some sprites in my game that were physics enabled once. Since the new collision polygon was sized differently it broke a few things since the mass was now off. :(

  • saving the coordinates would be awesome. Even if I set to bounding box, it doesn't stay there when I import a new sprite onto that frame.

  • saving the coordinates would be awesome. Even if I set to bounding box, it doesn't stay there when I import a new sprite onto that frame.

    I do an invisible mask and pin on the object, so, any change of the "animation" object will not replace your masks.

  • > saving the coordinates would be awesome. Even if I set to bounding box, it doesn't stay there when I import a new sprite onto that frame.

    I do an invisible mask and pin on the object, so, any change of the "animation" object will not replace your masks.

    the problem with that is when you use collision with the dynamic animation, and collision with the mask for two different things.

    For instance, my actual character sprite is used to determine the attack area, where the mask is the hitbox and collision area.

  • I have the same problem with collision polygons.

    Really a checkbox for not resetting would be nice.

    Another worry i have is that collision polygon could not be outside the picture frame... So if i want it to be bigger i need to place bigger sprites...

  • I have the same problem with collision polygons.

    Really a checkbox for not resetting would be nice.

    Another worry i have is that collision polygon could not be outside the picture frame... So if i want it to be bigger i need to place bigger sprites...

    Overlap at offset is an option, but not for everything.

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