Shaking?
memski425
Member Posts: 19
Hi,
when my actor collides with the ground i made it starts shaking and moving on the ground. All my collision rules are made. i am not sure if it is a bug or a rule that is wrong
when my actor collides with the ground i made it starts shaking and moving on the ground. All my collision rules are made. i am not sure if it is a bug or a rule that is wrong
Comments
http://www.jamie-cross.net/?p=272
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Solution:
Track the speed of the object, when it's really really low force it to stop:
Constrain self.speed (real) = magnitude(linearVelX, linearVelY)
rule speed < 10
-- Change Velocity: 0
Alternatively, sometimes instead of Change Velocity you want to override any forces acting on the object (like gravity) in that case you can use a Move Behavior, type: Stacked, speed: 0 to override the other forces.
But for most cases Change Velocity will due.
I have an actor that moves around in the world.
I have containing walls around the scene to keep the player from escaping the world.
When I push the player character against the wall (holding down the movement key) the actor "jitters" rather than just coming to a stop.
Please help me GameSalad-Kenobi. You're my only hope.