How do I destroy only the parts of image

Get help using Construct 2

Post » Wed Nov 19, 2014 4:08 am

So supposedly I shoot a laser beam, and it only hits part of the terrain.
How do I only destroy the parts that were exposed to the laser, not the entire image

Cause I can only do destroy object on coliision

WIll somebody please help if they have done this already?
B
3
Posts: 6
Reputation: 187

Post » Wed Nov 19, 2014 4:31 am

Check the lemmings example of Ize.

viewtopic.php?t=64098&start=0
B
18
S
4
G
5
Posts: 406
Reputation: 5,172

Post » Wed Nov 19, 2014 10:20 am

Alternatively, you can check this : destructible-terrain-kind-of-like-worms_t118319
It also uses canvas but store all the pixels in an array for better performances (regarding my own "engine").

Still, it's a tricky and slow solution.

If you want more explanations about this, just do a forum research on "worms" and "per pixel".
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Wed Nov 19, 2014 11:12 am

Hi dci. Could you replace the original image with a new one that looks like a damaged version of the first one?
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560


Return to How do I....?

Who is online

Users browsing this forum: Tibolli and 14 guests