Physics box push

For questions about using Classic.

Post » Sat Nov 07, 2009 1:40 am

Hi all,

I am trying to implement box pushing into my platformer, but I can't quite seem to get it to work all that well. My main concern is how to make the box fall realistically. I started using physics, and while looking at another topic on these forums, I found some a useful .cap file to use as reference:

viewtopic.php?f=3&t=4678&p=37141&hilit=pushing.cap#p37141

However, this cap file still does not explain everything I need to know. Basically, the box, when pushed off an edge, does not behave realistically; gravity is far too weak, so the box drifts down, instead of falling down.

So my problem is how to fix this. I tried tweaking physics attributes, to no avail. Adding mass makes it too heavy to push, increasing gravity makes the box bounce and act kinda funny. I tried giving the box a platformer behavior; with this, I was able to edit the gravity of the box as it fell, but for one reason or another it won't stop bouncing, as if gravity is pulling it down and the world is pushing it back up. Of course, I CAN make it stop bouncing if I turn gravity off on the Physics behavior, but then the box slides forever on the ground. Furthermore, even while changing these values, the box still does not fall straight down, but instead falls at an angle (even with the horizontal air value turned down to 0).

Basically, how do I create a box that the player can push, a box that will fall 'realistically'? The only way I can think of at the moment is to use a number of custom events that change values based on where the box is in location to the world and the box's current state, but that seems like a pain...

Thanks!
B
3
G
3
Posts: 8
Reputation: 916

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests