Gravity Issue

TebrocTebroc Erie PaMember, PRO Posts: 10
edited December 2011 in Working with GS (Mac)
Hello everyone,
I've implemented gravity in my game by assigning a behavior of 'Accelerate' to my main actor (instead of assigning it to the whole scene.) This works great while the actor is making full contact with another actor (like the ground). Where I run into problems is when the main actor reaches the edge of a platform. As the actor reaches the edge and starts to hang over the edge, gravity does it's thing and the actor begins to tip. While this a great feature, I am merely looking for a way to implement a simple physics model that is more in line with Super Mario Bros. where even if one pixel remained on the platform, it was enough to keep the actor in place. Any ideas? Thanks for your time.

Comments

Sign In or Register to comment.