|
Almost finished, 90 degrees off |
Nelson Cole
Member #6,043
July 2005
|
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 |
Tero Laxström
Member #2,589
July 2002
|
Rotate the image? Sorry, didn't quite get what's the problem? -- |
Nelson Cole
Member #6,043
July 2005
|
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. |
Arthur Kalliokoski
Second in Command
February 2005
|
Try 1.5 * AL_PI or 2.5 * AL_PI? They all watch too much MSNBC... they get ideas. |
Jonatan Hedborg
Member #4,886
July 2004
|
...So add/substract 90 degrees as needed?
|
Nelson Cole
Member #6,043
July 2005
|
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 |
|