How do make a destructible terrain

Get help using Construct 2

Post » 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

Post » 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
53
S
14
G
13
Posts: 818
Reputation: 17,414

Post » 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

Post » 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
47
S
16
G
9
Posts: 1,097
Reputation: 11,180

Post » 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
30
G
24
Posts: 3,191
Reputation: 32,584

Post » Sat Apr 13, 2013 2:46 pm

@Squiddster , Challenge accepted ...
B
38
S
16
G
17
Posts: 2,230
Reputation: 17,220

Post » 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
8
G
7
Posts: 756
Reputation: 7,242

Post » 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
30
G
24
Posts: 3,191
Reputation: 32,584


Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Congrats2u, Iftikhar555, RogerThompson and 9 guests