Thanks for all your tips in my previous post, i managed to get the arm to rotate (pivot actually) and follow the main characters should, only problem is the arm rotates 90 degress off, how can I correct that.
This is located in the main:
// Load arms sprite BITMAP *arms = load_bitmap("arms.bmp", NULL); float radians;
This is located in the main while loop:
Thanks
Rotate the image? Sorry, didn't quite get what's the problem?
the problem is that the image rotates 90 degrees off, the arm points to the right when the mouse is held above the player, as opposed to pointing right when the mouse is right. The rotation is 90 degrees off.
Try 1.5 * AL_PI or 2.5 * AL_PI?
...So add/substract 90 degrees as needed?
Thanks guys i got it working, i had to flip the actual picture by 270 degrees, and then set AL_PI to X 2.5. Thanks alot