• 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 Valkv · Jun 18, 2013 at 07:28 AM · movementtranslateblurryside scroller

Blurry movement problem

I am trying to make a side scroller, and my approach so far has been to keep the player in a fixed position and move the environment by him. Within a FixedUpdate, I am merely doing a very simple

 foreach (GameObject o in segments){
     o.transform.Translate(scrollSpeed*Time.fixedDeltaTime);
 }

This, however, causes everything to be very blurry, small objects in particular, such as stars etc.

I tried the following without any success in removing the blurriness:

  • moving the loop in a simple Update method + using Time.deltaTime or Time.smoothDeltaTime

  • making the player move as the world is stationary, with the camera following the player

I should mention that it looks fine when paused. The problem is only with it moving by at high speeds.

I'm currently out of ideas on what I could try. Is it possible to make the objects not look blurred when moving? Any tips are welcomed.

Comment
Add comment · Show 1
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 manumena · Jan 18, 2015 at 04:19 PM 0
Share

Hi, I'm having the same problem. I followed this tutorial In fact my code for moving the objects is the same

 public class PlayerController : $$anonymous$$onoBehaviour {
 
     public float speed;
 
     private bool facingRight = true;
 
     private Animator animator;
 
     void Start(){
         animator = GetComponent<Animator>();
     }
 
     void FixedUpdate(){ 
         float moveHorizontal = Input.GetAxis ("Horizontal");
         rigidbody2D.velocity = new Vector2 (moveHorizontal * speed, rigidbody2D.velocity.y);
 
         if((moveHorizontal > 0 && !facingRight) || (moveHorizontal < 0 && facingRight)) 
             flip();
 
         animator.SetFloat("speed", $$anonymous$$athf.Abs (moveHorizontal));
     }
 
     private void flip(){
         facingRight = !facingRight;
         //La definicion de una variable auxiliar(scale) es necesaria para modificar localScale
         Vector3 scale = transform.localScale;
         scale.x *= -1;
         transform.localScale = scale;
     }
 }
 

But when my object take high speeds it became very blurry

0 Replies

· Add your reply
  • Sort: 

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

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to translate a camera forward and back(basically a zoom) according to the distance of two objects? 1 Answer

Disable Diagonal Move 2 Answers

How do I modify the current transform? 2 Answers

How to stop transform.Translate instantly ? 1 Answer

2D Pixel Art Player Blurry/Vibrates When Moving Via Kinematic Platformer Controller 1 Answer


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