• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Jokeman258 · Mar 09, 2015 at 11:55 AM · unity 52dbuild2d-platformerrigidbody2d

2D Character jittering after build. (Unity 5)

I'm making a 2D platformer with a rigidbody2D character that the player controls. The horizontal movement is handled by translate while jumping is handled by the velocity.y of the rigidbody2D. The character acts normal when in the editor, however after building the game it starts acting odd. If I jump up and the character is just moving up it acts normal. However if I try to move right or left while in the air the character seems to jitter.

The problem is worse if I change the graphics to "fastest", in that case the character hovers above the ground if I move left or right and just moves down slowly. I get the same errors if I simply run off a ledge (ergo, without jumping).

Also, while I usually don't get the issue in the editor, if I set it to run "fastest" in the editor quality settings, I get the same error in the editor as I did after building it and running "fastest". The issue goes away in the editor if I turn off V sync on "fastest"'s settings, however it still jitters after being built.

I have a hunch that the issue has to do with my recent installation of Unity 5. I hadn't yet built the game before upgrading it to Unity 5, so I can't know for sure, however I've made other platformers using basically the same method in Unity 4 and never had this issue.

Thanks for any help!

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mooocowgaming · Mar 12, 2015 at 02:57 PM 0
Share

Same Here. I updated to Unity 5 from 4. $$anonymous$$y Whole 2d Game broke, the player was screwed even more.

I still haven't gotten it to work.

avatar image Jokeman258 · Mar 13, 2015 at 09:22 PM 0
Share

Update: Alright so I tried changing all the scripts to "fixedupdate" and now the movement works fins with Vsync turned off, as opposed to before where turning Vsync off made it worse. However, with Vsync on the problem is still just as bad? It's really odd. I can't keep Vsync off because it makes my input not work, so does anyone know how to solve this problem?

avatar image Mooocowgaming · Mar 13, 2015 at 09:29 PM 0
Share

The way i fixed it was to stop the errors, i just fixed the problem. But i also tried the game on my $$anonymous$$ac (4gb ram 2.4ghz). Works fine with errors No lag.

But my Ga$$anonymous$$g Pc (Developing Pc) Has 16gb ram, 3.9 octo core. It lags. It seems like a unity problem.

Once i fixed the errors all lag stoped.

avatar image Jokeman258 · Mar 13, 2015 at 10:20 PM 0
Share

What do you mean "fixed the errors"? I think we're probably suffering a different problem since I just found an older build of the game from before Unity 5 and it had same problem. I just fixed it by turning off interpolation.

avatar image Mooocowgaming · Mar 13, 2015 at 10:37 PM 0
Share

I had an error saying, animator has not been initialized. I got 1000 errors in like 5 seconds. It was slowing down my untiy.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Jokeman258 · Mar 14, 2015 at 01:30 AM

FIGURED IT OUT. Okay so basically after literally deconstructing and reconstructing my entire script to try and fix this, it turned out all i had to do was turn off interpolation. I must have turned it on at some point by accident. It's actually kind of weird that this fixed the problem since according the the unity manual, jittery character movement is exactly what turning interpolation ON is supposed to fix.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mooocowgaming · Mar 14, 2015 at 01:44 AM 0
Share

I have no idea what that means, i'm brand new to game making but. Cool you fixed your problem. I assume unity will fix that error lag bug soon anyway.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

,Hey! I'm trying to make a Dash move like Celeste but my Dash doesn't seem to work Horizontally(X Axis), My Dash is working perfectly fine Upward and Downwards(Y Axis). 1 Answer

Rigidbody2d getting stuck when moving horizontally at random points! Can't figure it out :( 1 Answer

2D Jump using "Rigidbody2D.AddForce" doesn't work. 1 Answer

2d controll rigidboy.velocity.y 1 Answer

Unity 2D - Rigidbody2D Velocity sudden freeze 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges