Enemy movement with Animation instead of code

It occurs to me that it would be possible to create an animation and attach it to the enemy formation. This could be used to handle the left-to-right movement of the enemy ships, removing the need to code in the movement. I guess because it uses world-unit values for positioning it would be difficult to change the movement based on the size of the visible world space (as we do in code with Camera.main.ViewportToWorldPoint). Are there any drawbacks to this approach?

Privacy & Terms