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
34
S
11
G
9
Posts: 189
Reputation: 8,595

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
34
S
11
G
9
Posts: 189
Reputation: 8,595

Post » Thu Jun 21, 2012 12:09 am

try using search for pushing boxes or something

a lot of examples

link
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Jun 21, 2012 12:43 am

Thanks ;)
B
34
S
11
G
9
Posts: 189
Reputation: 8,595

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
54
S
28
G
18
Posts: 1,520
Reputation: 24,990


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, MChiz, Radulepy and 0 guests