Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » About rotate_sprite

This thread is locked; no one can reply to it. rss feed Print
About rotate_sprite
chyuan
Member #7,988
November 2006

pic=load_bitmap("tank.bmp",NULL);
rotate_sprite(screen,pic,10,0,4100000); //I am confused by the last parameter...
How do I know the last parameter if I want to rotate my picture 90 degree??

Kitty Cat
Member #2,815
October 2002
avatar

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

chyuan
Member #7,988
November 2006

i tried with itofix
when I put itofix(64) in the function, the image was rotate 90 degree. Why?

gnolam
Member #2,030
March 2002
avatar

rotate_sprite()

Please start reading the manual. Please. Everything you need IS in there.

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

CGamesPlay
Member #2,559
July 2002
avatar

Quote:

when I put itofix(64) in the function, the image was rotate 90 degree. Why?

You just randomly tried 64 without any basis for that decision?

Anyways, read.

rotate_sprite

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

chyuan
Member #7,988
November 2006

Got it

Go to: