# How do make a destructible terrain

Get help using Construct 2

### » Sat Apr 13, 2013 3:06 am

I want to make a destructible terrain like Worms, What I have to do?
I know there is a Canvas Object in Construct Classic, it can update collision mask ,But I can't find such a function in Construct 2, Please tell what I have to do.

PS: I'm not from a contry which speak English, so please forgive me if I say something wrong. =w=
B
4
S
1
Posts: 12
Reputation: 679

### » Sat Apr 13, 2013 9:00 am

You could do something like this.

Ball | OnCollision with Terrain
Set Terrain to Frame 2

Frame 2 would be your destroyed looking terrain and Frame 1 would be your normal terrain. This isn't very dynamic but its the only way I know of doing it.
B
58
S
15
G
13
Posts: 826
Reputation: 17,775

### » Sat Apr 13, 2013 11:24 am

Thanks for your answer, But I think the Collision is the bigest problem, and I don't know how to solve it.
B
4
S
1
Posts: 12
Reputation: 679

### » Sat Apr 13, 2013 11:57 am

@cjj19970505

search the forum, there are lots of examples and different ways to do what you want.
B
52
S
16
G
9
Posts: 1,098
Reputation: 11,267

### » Sat Apr 13, 2013 1:30 pm

Basically, there's no effective way to do it with pixel-perfect collisions like worms. You'll have to do it with tiles.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

### » Sat Apr 13, 2013 2:46 pm

@Squiddster , Challenge accepted ...
B
43
S
18
G
17
Posts: 2,247
Reputation: 17,556

### » Sat Apr 13, 2013 3:23 pm

[QUOTE=cjj19970505] I want to make a destructible terrain like Worms, What I have to do?
I know there is a Canvas Object in Construct Classic, it can update collision mask ,But I can't find such a function in Construct 2, Please tell what I have to do.

PS: I'm not from a contry which speak English, so please forgive me if I say something wrong. =w= [/QUOTE]

Rojohound posted great example here

Like said before, there really is no smooth way of doing it. Basically what he did is he separated visual side (canvas) and collision side (array).
B
24
S
9
G
7
Posts: 756
Reputation: 7,322

### » Sat Apr 13, 2013 5:01 pm

@vee41 interesting idea, I didn't see that r0j0 example. Seems like maintainability could be an issue later though.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739