How do I get gravity to work with key presses?

Just started using Construct 2? Post your questions here

Post » Sun Dec 27, 2015 7:12 am

So I have an object with the 8direction and physics behaviours. I want to simulate gravity by adding a force to it in the positive y-direction and I do it every x seconds. It works just as I intended when I just let the object drop to the ground but when I press the left or right key it stops falling. How do I let it be affected by gravity even when I am moving the object?

Is this the best way to simulate gravity or can you nudge me in another direction please? :)

Cheers!
B
3
Posts: 2
Reputation: 179

Post » Sun Dec 27, 2015 11:12 am

I actually fixed it by using CustomMovement instead of 8direction. Seems like the physics behaviour was kind of overkill for my case.
B
3
Posts: 2
Reputation: 179


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests