Platformer and pushing boxes

Get help using Construct 2

Post » Wed Jun 20, 2012 7:27 pm

Hey, i got a question regarding interactive boxes in a platformer environment.

The issue is simple; I want the player (platform behaviour)to push a box (static sprite with collision).

Do i need to alter the player character and everything with physics, or? Is there an easy way to achieve this? I'm thinking classic "push the crate" here.
B
35
S
12
G
9
Posts: 191
Reputation: 8,724

Post » Wed Jun 20, 2012 10:02 pm

if the crates have physics on em wouldnt the player bumpin into be enough to cause em to react?
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed Jun 20, 2012 10:16 pm

Yeah i was thinking that, but then i might have to alter the ground, which has the solid behaviour. I would have to make it immovable etc, and i would have to redo the whole level to make all the assets fit with the physics attributes. At least thats what i think :P

I would also need to make the player related to physics behaviour, as the box has physics behaviours.

Im not really sure about anything here, but i keep on failing at least :)
B
35
S
12
G
9
Posts: 191
Reputation: 8,724

Post » Thu Jun 21, 2012 12:09 am

try using search for pushing boxes or something

a lot of examples

link
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Thu Jun 21, 2012 12:43 am

Thanks ;)
B
35
S
12
G
9
Posts: 191
Reputation: 8,724

Post » Thu Jun 21, 2012 1:08 am

That's a cool idea, using the platform behaviour on the box. Here's a couple of examples I made (pushing only).

The easy way (kinda jumpy): platformPushCrate1.capx

Using pinned behaviour: platformPushCrate2.capx
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670


Return to How do I....?

Who is online

Users browsing this forum: warmty and 20 guests