character is jittery when moves?

allc1865allc1865 Member, PRO Posts: 777
Hi. My character is jittery when it moves left. When I moves right, it's fine. I have checked and re-checked my code and everything is right. Anyone know what could cause this?
Thanks.

Best Answers

  • tatiangtatiang Posts: 11,949
    edited October 2013 Accepted Answer
    The only thing I can think of is that the values of game.moveRight and game.moveLeft are changing when you think they should be constant. Does this happen with just a simple Move behavior set to 180 or 0? And make sure you don't have too many other programs open that could be causing a memory issue on your computer.

    If possible, send me a private message with a link to download the zipped project file and I'll see if I can find the problem for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    Okay, glad it works.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    So... if your code is perfect, we will have no idea why this is happening. Any chance your code is not perfect? If you post a screenshot of your rules or a link to download your project file, I'll have a look for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    Arrtribute game.moveRight is true > move
    Attribute game.moveLeft is true > move > 180 direction.
    It's relative to actor, move type: additive (for both)

    Sorry, I couldn't do a screenshot at this time.
    Thanks!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Sounds pretty simple. Have you tried creating a blank new project and adding a single actor with those same two rules to see if the problem exists only in the project you're working on or if it's Creator-wide?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    Yes. It seems to happen no matter which new document I create.
  • GM_PandagamesGM_Pandagames Member Posts: 228
    my things arent jittery. :(|)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Does it happen with this demo I created (use left and right arrow keys to move the actor)?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    When I move my character right, everything is ok, but when I move him left, it's jittery.
    I couldn't open your file, sorry. It says it's just an image.
  • allc1865allc1865 Member, PRO Posts: 777
    Don't worry about it. It's fixed. Thanks!
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @allc1865 can you share how you fixed it?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • allc1865allc1865 Member, PRO Posts: 777
    I actually quitted the program and when I opened my project back up, it wasn't very jittery anymore.
Sign In or Register to comment.