Actor jittering left and right when stopped.

FjantIncFjantInc Member Posts: 115
edited November -1 in Working with GS (Mac)
Alright, since I can't seem to get my jumping right I decided to go back and redo it with a new actor. I didn't get far until I ran into problems. After going left / right with my actor and coming to a stop, the actor don't really stop, but "jitters" around... a few pixels to the left and right... I've tried both with Accelerate and Change velocity with the same results. A similar thing happened with my old actor, which started jitter up and down when standing on some platforms. That thing started with 0.9.

http://www.fjant.se/games/coa/jitter.png

Anyone knows what to do?

Comments

  • butterbeanbutterbean Member Posts: 4,315
    Try this: under the physics of the actor, try changing the restitution to a lower number, that fixes the "Bounciness" of the actor

    Also, if you have a platform, go in and change it's restitution as well as it's motion.

    Under Motion: Check only "fixed rotation" for the ground actor. (uncheck: Moveable)

    That should fix it!
  • FjantIncFjantInc Member Posts: 115
    Alright, I'll give it a shot. I thought the restitution was only for when the actor collided with a platform (and bounced)... My actor doesn't collide with anything but jitters nonetheless. However, I'll give it a go when I'm on my mac. Thanks!
  • FjantIncFjantInc Member Posts: 115
    Nope, it didn't help. I've tried several values as restitution, but with the same result.
    I've uploaded the gameproject file, so if anyone could take a look (or just see if it happens them aswell) I'd me more than happy!

    http://www.fjant.se/games/coa/slask.zip
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi undersky, I've changed a few things, including adding a maximum speed. This needs to be higher than the speed shown in the Change Velocity Behaviour, it would seem. So what I've done:

    Under Motion, in the attributes section, made Max Speed to 350.
    Checked Apply Maximum Speed

    Under Physics, Density 100, Friction 20 and Drag 30.

    You might need to tweak this numbers more to what you're after, but at least the jitters have gone (doctor). ;-)

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • FjantIncFjantInc Member Posts: 115
    Thanks a lot! It seems like it worked. Have a christmas present for being nice and not naughty =) http://www.highyieldsavingsaccount.com/wp-content/uploads/2010/11/xmas-present.jpg

    I think I'm starting to see why my changes don't really happen... It seems like I have to drag out a new actor of mine everytime I've made a change and want to preview it? Can anyone confirm that it's so and that it's just not some bug? Because I edited another actor that could jump... I deleted all of the rules for him, and I could still control him like nothing's ever happened.
Sign In or Register to comment.