Wednesday, November 8, 2017

unity - How to do pixel perfect movement with Unity3D?


How would you be able to make sprites move pixel by pixel in Unity3D? I've tried the following things.




  • int x = (int) transform.position.x;




  • int x = Mathf.FloorToInt(transform.position.x);





  • int x = Mathf.RoundToInt(transform.position.x);




I don't know what else to try


Because I'm making an SNES looking game, and when things move, there is very bad pixel crawl in the sprites.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...