Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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.

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

Object transported to point instead of moving towards it? 1 Answer

Best Solution for Constant Horizontal Speed 1 Answer

Why is my character strafing around the mouse (2d) 1 Answer

Drawbacks of Moving Rigidbody by transform.translate 1 Answer

How to stop coroutines or functions 2 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