How do I break apart an instance of a sprite?

0 favourites
  • 3 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • Hi,

    Let's say I shoot a missile at a sprite object such as a crate. Upon collision, how do I break apart the crate into separate pieces and then fade away?

    I understand the fade behavior so my question has to do with the breaking apart effect.

    To clarify, I am aware of spawning particles such as explosions or flames and destroying the sprite, I am just thinking it might be a cool effect to show the actual sprite being split into pieces itself rather than a particle affect doing something.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Simplest would be to just make an animation to do that. More complex would be to utilize distort meshes to make a piece of the object. You’d have to duplicate the sprite for each piece. Then set the mesh point xy to the edge of the shape used of the piece and the uv so that the image isn’t distorted. Doing that in a dynamic way is probably too complex so you could use a 3d modeler to chop up a quad into fragment polygons. They should be convex but you can have concave polygons in some cases. I think I’m only scratching the surface on how that could be done. There’s a lot of busywork and smaller puzzles to solve. So again it’s probably easier to do an animation or just draw the smaller prices. Or you could draw the object to a canvas and use a blend mode to mask out the part you want.

  • Thanks. Yes, sounds much simpler to break apart the items and animate them with frames.

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