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
50
S
14
G
12
Posts: 813
Reputation: 16,764

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
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Apr 13, 2013 2:46 pm

@Squiddster , Challenge accepted ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

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,192

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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: theosciandra and 26 guests