|
Help me out please |
Nelson Cole
Member #6,043
July 2005
|
I'm doing programming on my game, but I'm stuck. I'm trying to implement and abuse like control scheme into my game. I have to bitmaps the player and the players arms. The math is all correct but the problem I'm having is that the players arm wont constantly rotate, it just stays at the angel that the mouse was at from when the program first runs. I have the line of code that controls rotation in the while main loop, what am i doing wrong??
Thanks |
Kitty Cat
Member #2,815
October 2002
|
You never update allegro_degrees. -- |
Nelson Cole
Member #6,043
July 2005
|
Can you give me a code snippet for that, i wrote this small app, and thats where I'm getting most of the code for the arm to mouse linkage. But I dont update allegro_degrees in it. This is that other app, "Ascheme"
|
Tero Laxström
Member #2,589
July 2002
|
In the layter snippet the allegro_degrees are counted inside the while loop.. and in the first not. -- |
|