Hi everyone.
I've finally mastered changing an actor's animation and movement depending on the direction from the main actor (e.g. an enemy moving towards the main actor, with the animation changing as the angle of approach changes) using the following:-
angle = direction (x, y, maincharacter.x, maincharacter.y);
directional_velocity = 4.5;
animpos = ((angle / 360) * nframes)-1;
The enemy actor has 32 frames, and the correct frame displays when angles/directions change. However, as the enemy 'walks' I'm trying (and failing!) to have each of the 32 frames as animated gif's (each an 8-frame animation of 'walking')
When I try this, though, the animation frames, though rotating correctly, are not themselves animated.
Anyone help?