Pushable top-down object

Get help using Construct 2

Post » Sat Nov 16, 2013 10:49 pm

I am creating a game where the player uses the 8direction behavior to move. I want the player to be able to push objects they run into while walking. How could I do this?
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Sun Nov 17, 2013 3:34 am

short answer: use physics
long answer: use phhhyyyyssssiiiiiccccssss

alternatively you could use physics
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun Nov 17, 2013 6:16 pm

@keepee
As far as I can tell, I cannot remove the downward force that the physics behavior uses.
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Mon Nov 18, 2013 12:01 am

Bump
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Mon Nov 18, 2013 1:54 am

Set gravity to zero on the physics object.

There's an example in the arcade.

http://www.scirra.com/arcade/example/5104/wind-example
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948

Post » Mon Nov 18, 2013 2:57 am

@JohnnySix
Where can I find the gravity input?
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Mon Nov 18, 2013 11:42 pm

@HackSawUnit - you can download the example

http://static1.scirra.net/arcade/games/5104/wind-example.capx
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948

Post » Tue Nov 19, 2013 7:46 am

you can change gravity options at the behaviour's properties .. or do something like this:
on start of layout -> set "player" gravity to 0

Next time a Live demo or a .capx would be helpful ;)
B
23
S
6
G
5
Posts: 132
Reputation: 4,487


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher and 5 guests