I'm trying to create "attacking swarm" animations using animated sprites (actually character sheets) for the individual insects. What I've got so far look pretty good, but there's one thing I'd like to do that I can't find a solution for.
In one particular animation the insects spin in a circle around the center. What I'd like to happen is for the sprite to face an appropriate direction depending on where they are in the circle- if they're moving left, the left direction sprite should be used, if 'away' from the player, the up sprite should be used, ect. Does anyone know of a way to create an effect like that? The best I can manage is to time the animation frames to sort of match the circle movement, but that doesn't really work because each particle is spawning and moving at different rates to get the scattering needed for a swarm.
I hope that description was clear enough. Thanks in advance for any suggestions.
In one particular animation the insects spin in a circle around the center. What I'd like to happen is for the sprite to face an appropriate direction depending on where they are in the circle- if they're moving left, the left direction sprite should be used, if 'away' from the player, the up sprite should be used, ect. Does anyone know of a way to create an effect like that? The best I can manage is to time the animation frames to sort of match the circle movement, but that doesn't really work because each particle is spawning and moving at different rates to get the scattering needed for a swarm.
I hope that description was clear enough. Thanks in advance for any suggestions.