rotation problem
Posted: Sat Dec 01, 2012 8:54 am
HELLO,
when i use the code
to rotate my sprites , the player "flys" to the enemy , its like move to, but he rotates... i tried to fix it by chaging the angle with another variable , but than he doesnt rotate... how can i fix it?
when i use the code
- Code: Select all
angle=direction(x, y, enemy.x, enemy.y); //test angle
animpos=angle/360*nframes;
to rotate my sprites , the player "flys" to the enemy , its like move to, but he rotates... i tried to fix it by chaging the angle with another variable , but than he doesnt rotate... how can i fix it?