|
Problem with rotating |
tmrovsky
Member #15,394
November 2013
|
Hello everybody! I attached my code + one bitmap. |
Arthur Kalliokoski
Second in Command
February 2005
|
Nobody has answered in so long, and I had some time to kill (took me an hour!) so I rewrote it from scratch with some differences based on my rewrites of some of the examples. I changed your bitmap to a TARGA tga file to provide transparency. Both the source and tga file are in the paperclip. If you wanted the ship to start and stop more smoothly, say so, it'd take me a few more minutes. Also, it looks rather crappy without blending and such enabled, but it's complicated enough now. [EDIT] Whoopsy! A fierce bug bars the way! Line 123 should be ship_angle += ALLEGRO_PI*2.0; Sorry! They all watch too much MSNBC... they get ideas. |
tmrovsky
Member #15,394
November 2013
|
Thanks a lot for answering. You did exactly what I was looking for. I understood your code and it was good way to know something new. It nice of you that you wasted your time to help me sort out a problem. Currently version is fine to me and enough smoothly. Thanks, once more! |
|