Question by
evanwr9 · Oct 28, 2020 at 11:00 AM ·
2d sprites2d camera2d controller
2D Sprites Smearing With Movement Via Transform
My sprites are smearing like this:
While I am using this script:
public class xyMovement : MonoBehaviour
{
float horizontalInput;
float verticalInput;
// Start is called before the first frame update
void Start()
{
horizontalInput = Input.GetAxis("Horizontal");
verticalInput = Input.GetAxis("Vertical");
}
// Update is called once per frame
void FixedUpdate()
{
horizontalInput = Input.GetAxis("Horizontal");
verticalInput = Input.GetAxis("Vertical");
transform.Translate(new Vector3(horizontalInput, verticalInput, 0));
}
}
My Components look like this for the simple white box sprite, and the other sprites components are not too off from normal either.
I'm pretty inexperienced at this point, but I have no idea what could be causing my images to behave like paint brushes instead of simply transforming from one position to another. I have used multiple types of movement and they have all yielded similar results. Thank you very much in advance!
capture.png
(311.0 kB)
capture1.png
(46.3 kB)
Comment
Best Answer
Answer by evanwr9 · Oct 28, 2020 at 11:11 AM
I just set my camera Clear Flags to Solid Color and my problem was fixed!
Why I guess would be my question.
Your answer
![](https://koobas.hobune.stream/wayback/20220613014726im_/https://answers.unity.com/themes/thub/images/avi.jpg)