Create Pushable & Climbable Crates in Platformer

Get help using Construct 2

Post » Tue Mar 12, 2013 8:09 am

Hello, I'm currently working on a platformer game, and I'm having problems trying to get some Physics to work properly.

I have a character with the Platform Behavior, and a crate with Physics material. What happens is that the pushing crate get really buggy (sometimes, I pass right through the blocks), and when I jump on the crate, my character goes through them (or when a solid is underneath, the crate goes in the middle of the solid, and bounces back up again when I get off).

Does anyone have good suggestions for implementing this?

Thank you.HAXX0RZ2013-03-13 01:52:12
B
6
S
1
Posts: 10
Reputation: 774

Post » Tue Mar 12, 2013 8:54 am

dont use physics for the crate pushing, give the crate 8way directional behavior or platform behavior and create the effects you want.
B
22
S
5
G
1
Posts: 81
Reputation: 2,271

Post » Tue Mar 12, 2013 10:59 am

I tried that and I just end up passing right through all the crates...
B
6
S
1
Posts: 10
Reputation: 774

Post » Tue Mar 12, 2013 7:04 pm

Did you set the crates and the controllable sprite to "solid" in the behaviors?
B
6
S
3
G
1
Posts: 102
Reputation: 1,379

Post » Wed Mar 13, 2013 1:51 am

[QUOTE=Alexixiv] Did you set the crates and the controllable sprite to "solid" in the behaviors?[/QUOTE]

Yes I have tried turning them to solid, but they become unpushable.

I want a pushable and climbable crate.
B
6
S
1
Posts: 10
Reputation: 774

Post » Wed Mar 13, 2013 4:48 am

For pushable can't you say if platform next to wall and object is (your block) then when you push the button move 10 pixels or something like that?
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Wed Mar 13, 2013 5:16 am

@HAXX0RZ This works for me where blue is the player and Sprite 2 is a block with solid behavior:



I added a P key is down condition just because I wanted to differentiate between pushing the block and running into it randomly. You can remove that...BluePhaze2013-03-13 05:18:43
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Thu Mar 14, 2013 3:20 am

[QUOTE=BluePhaze] @HAXX0RZ This works for me where blue is the player and Sprite 2 is a block with solid behavior:



I added a P key is down condition just because I wanted to differentiate between pushing the block and running into it randomly. You can remove that...[/QUOTE]

I just tried that, but it results in some crazy bugs when the solid is pushed towards a solid wall. It also gets buggy when you stack up all those crates.

Not really the best solution, but can anyone suggest a better way?
B
6
S
1
Posts: 10
Reputation: 774

Post » Thu Mar 14, 2013 3:33 am

can you use if set in X/Y coor in condition to set in stone or remove the pushable action?
dragoonblade2013-03-14 03:34:02
B
7
S
2
G
3
Posts: 58
Reputation: 2,284

Post » Thu Mar 14, 2013 4:07 am

You can set conditions on the blocks for movable or not with a variable, then if they are against another block, don't allow them to be moved.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Next

Return to How do I....?

Who is online

Users browsing this forum: Zebbi and 29 guests