Digging in Platform

Get help using Construct 2

Post » Mon Dec 02, 2013 9:12 pm



Source

I want to dig.....

Destroy the tile UNDER the player if they are pressing a key , such as SPACE.

Right now I destroy ALL the grass in the layout : )

Thanks!
B
12
S
1
G
1
Posts: 50
Reputation: 1,228

Post » Mon Dec 02, 2013 11:21 pm

If you create a check for the player colliding or overlapping the grass, it should destroy the grass tile that the player is touching.
B
47
S
17
G
81
Posts: 2,221
Reputation: 48,089

Post » Tue Dec 03, 2013 2:12 am

Do you have an example? The tiles have platform SOLID behaviors so the Character never overlaps.

He collides if he jumps. But when you are standing on a tile there is no even to capture and I do not see a way to check what the character is standing on.
B
12
S
1
G
1
Posts: 50
Reputation: 1,228

Post » Tue Dec 03, 2013 2:16 am

Use if player is overlapping at offset and enter a value of 1 for Y. Will detect overlap collision with the floor then press space to destroy the tile you're standing on.plinkie2013-12-03 02:18:42
B
47
S
17
G
81
Posts: 2,221
Reputation: 48,089


Return to How do I....?

Who is online

Users browsing this forum: roracle and 6 guests