Twitching?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited January 2012 in Working with GS (Mac)
Hey,

in my games many actors are spawned and get accelerated into the game scene. But I always notice a twitching when the
actors get accelerated ..like moving for and backwards very slowly..

why is this happening? because of the many actors getting spawned or?

Alex

Comments

  • coojamcoojam Member Posts: 26
    Are the actors constrained to the position of something else being accelerated, or are they being accelerated directly?

    I found actor twitching happened sometimes when the actor couldn't keep up to the one it was supposed to be following efficiently.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I am having change self motion..

    Thank you
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea? Has someone experience with this problem?

    Alex
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi Alex, I haven't had this problem before but I'm pretty much certain it's got nothing to do with the amount of spawning; it's probably down to the rules somewhere, I'm thinking. What happens when you run just one of the spawned actors; and what happens when you place the actor on screen (as a test, no spawn)? (i.e Do you still get the twitching both times...)

    By the way, when I first saw the title of this thread, I thought you was referring to bird-watching! http://en.wikipedia.org/wiki/Twitcher

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

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

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Hey,

    I just tested something new. A new project, just 2 backgrounds moving trough the scene.

    Scene size: Width 960...The game are its just till 480.
    Under scene settings wrap X set on.

    Behaviors tested: change motion and move..

    Always the same problem...it looks licks stacked or just twitching. The actors don't move fluid..I never have seen something like
    this before..what now? :/

    Thx
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi again, there are at least 5 ways of moving an actor, here's 3:

    Change attribute self.Motion.LinearVelocity.x (---or y)
    Change Velocity behavior
    Move

    Basically, depending on what type of game you're making and how other rules interact, you'd choose one over the other. None of these used in an actor in a simple test has stuttering/twitching; it's all quite smooth.

    Some of these behaviors shouldn't be mixed with the other types.... sometimes.... (depends on what your trying to achieve)

    Do you have any other programs open other than GS? Closing Safari, etc can help; also if you're downloading or uploading stuff that could have an effect.

    Another thing it might be is you've got density too high or friction set too high. (putting them back to 1 and 3 respectively will help).

    Hope that sorts it for you.

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

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Thanks a lot.

    Do you know how to make an actor not changing his y position when something collides with him?

    :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    If the actor that's being collided with is stationary and never moves, uncheck Moveable in the Physics section of the actor's attributes. :-)

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

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited January 2012
    The problem is that I need moveable because the actor is moving trough the scene but just on the x-axis. The y should be constant forever.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I guessed you were going to reply with that!

    Basically, take out any collision stuff from the actor you don't won't to move from it's fixed/variable path. This means using the Collision Behavior, or the Rule when actor collides with... in your other actors that do react to a collision. Give that a whirl...

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

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited January 2012
    Yeah but my moving actor has to collide with the actor that should not change his y-position...

    And only the moving actor has the collide rules!
  • skottskott Member Posts: 172
    edited January 2012
    Yes your not the only one. I have it in two of my games. I'm having a scrolling background in both games and it's not fluid movement. Don't know way this is happening. It looks liike it happens alot when i'm spawning an actor and play a sound at the same time. The thing is theres really no pattern in this, soemtimes the game runs slick other times it's stuttering/twitching. I'm using move for my actors.

    Also in the video here:http://forums.gamesalad.com/discussion/38117/totb4-skott#Item_5

    It's hard to see it but it's also happen in that game
Sign In or Register to comment.