rotation problem
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
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?