Destructible Terrain

This forum is currently in read-only mode.
  • Could someone telkl me how it works or how to do it. I don't know using canvas, there's just too much that isn't documented.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The example shows it as it is.

    Create a Canvas with your terrain. Create a separate Sprite (for example, in worms, a bazooka hole) which will be erased from the canvas.

    Use 'Paste into canvas' with this sprite, then Update collision mask. A hole will be made in the terrain and can be collided with/into.

  • The example shows it as it is.

    Create a Canvas with your terrain. Create a separate Sprite (for example, in worms, a bazooka hole) which will be erased from the canvas.

    Use 'Paste into canvas' with this sprite, then Update collision mask. A hole will be made in the terrain and can be collided with/into.

    Another note is that the "Paste into Canvas" uses that objects X and Y values, so you need to have an instance of the object where you want it to be pasted. A good idea, if you're using a mask with say a bullet, is to add the mask object to the bullet objects container, and add an event to place the mask object at the bullets position. Alternatively, use "On Bullet overlaps Canvas" -> "Bullet: Create Object 'Hole' at Image point 0" or wherever to erase it.

  • Could I see an example I'm also wanting to do this but I don't understand how you do it.

  • The example is in the uploads forum.

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