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
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
© 2024 OneMinuteCode. All rights reserved.