How do I make platform destruction?

Get help using Construct 2

Post » Sat Sep 17, 2016 12:25 pm

Message: Leondr can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello,
Help me please, how do I make platform destruction(falling) with physics?
Image

for example: https://www.dropbox.com/s/ch4koimhwtn1rca/destroyplatform.capx?dl=0
B
25
S
5
Posts: 22
Reputation: 1,351

Post » Sat Sep 17, 2016 2:32 pm

Leondr wrote:Hello,
Help me please, how do I make platform destruction(falling) with physics?
Image

for example: https://www.dropbox.com/s/ch4koimhwtn1r ... .capx?dl=0


Check out this example. :mrgreen:

https://www.dropbox.com/s/m0km3vtxe4aal ... .capx?dl=0

There are other ways to do it.. such as..

1. Creating a small sprite as hitpoint and pin it to the top right corner of the tile, so that the block will fall when the player is about to step off from the stepped tile.
2. Calculate X of the stepped sprite and make it fall when it reaches the far-end 10% of so of the stepped sprite.
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Sat Sep 17, 2016 2:57 pm

You can add the physics behavior to all the falling tiles, and set them to immovable (initially).
After your player character collides with each tile, you change each tile involved in the collision to be movable.

Check this example CAPX:
https://www.dropbox.com/s/lppbeb06fqp1e88/physics%20boxes%20max%20speed.capx?dl=0
B
28
S
10
G
10
Posts: 97
Reputation: 6,584

Post » Sun Sep 18, 2016 9:59 am

Thank you very much guys
B
25
S
5
Posts: 22
Reputation: 1,351

Post » Sun Sep 18, 2016 6:56 pm

You're always welcome, Leondr. :mrgreen:
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 7 guests