- Home /
TOPDOWN 2D 8 direction sprites vs 1 direction with rotation
As the title suggests,
I don't understand why is it any better for a top down game to have 8 directions of sprites for a character and then blending between them, when u can just have one direction and simply rotate the sprite in the direction it's heading?
Also for my specific example, It's an enemy AI that's moving, not player controlled and it needs to move in 360 degrees smoothly, the 8 direction thing wouldnt work right? In fact i have one player controlled turret, rotating towards mouse clicks, and it's just one sprite that rotates, and it looks perfectly fine and obviously smooth.
Normally a rotated sprite lose alot of quality especially with low resolution sprite. But Unity dont have this problem.
@Frank126 I don't know of any rendering engine that has ever had a problem with rotated objects. Unless you're working in some shitty engine (cough cough game maker) that doesn't use texture sampling, there is never a difference ;)
Answer by Benproductions1 · Dec 27, 2013 at 04:22 AM
Hello,
There is absolutely no difference between using 8 textures that are just the one rotated and using just one and rotating it. However in some cases you want different textures for when something is looking the other way, mostly to give a sort of pseudo-3d effect.
The disadvantage with using 8 instead of 1 is obviously memory. But that shouldn't be a problem in this day and age ;)
Hope this helps,
Benproductions1
Your answer
Follow this Question
Related Questions
Rotating sprite through touch (storing current rotation) 0 Answers
2D sprite rotation with velocity and interpolation 1 Answer
NavMeshAgent rotation 2 Answers
Change Sprite Origin in 2D 1 Answer