This is a question about the blurring of the drawing when moving the character of unity5.

Asked 2 years ago, Updated 2 years ago, 87 views

Hello
When I try to make a 2D game with sprite while using unity 5.2, the simple movement is sometimes unstable (shaking every 3 seconds).
The bigger the character on the screen, the more noticeable it appears, and when you attach the camera to the character, the character does not shake, but the background shakes.

void Update(){
    transform.Translate (Vector2.right*movex*Time.deltaTime);
}

The simple cord like the one above has a blur, but do the people who make the action game make it work smoothly with complementary or something to do when they move?
I think the 2D action in the unity sample is also blurred when moving simply.

Thank you for your cooperation.

unity3d

2022-09-30 19:40

1 Answers

Update does not guarantee a fixed period in the first place, so if you calculate the movement, it may not move at a fixed speed.(This is why it should be calculated in Time.deltaTime)

However, if the frame rate is low, the blurring can certainly be noticeable.This can be resolved and mitigated by increasing the frame rate (update cycle).

Try writing Application.targetFrameRate=60; in the script, or check the Quality Settings settings using the documentation below.

http://docs.unity3d.com/ja/current/ScriptReference/Application-targetFrameRate.html


2022-09-30 19:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.