Computer Science Canada Pic.Rotate Help |
Author: | jeo77 [ Tue Dec 13, 2005 9:00 am ] | ||
Post subject: | Pic.Rotate Help | ||
Hey, just wanted to say this before I pleed for help - great forums you guys have got running here, come in real handy when you get stuck and are sitting here cursing at the monitor. Heh. Anyways, Im making a small artillery game, and im trying to figure out how to rotate the turret of the tank, it's a seperate picture, and I can get it to rotate, but it rotates on a wierd pivot point, I need the pivot point on the bottom center of the turret, any ideas? This is what I got so far,
|
Author: | Tony [ Tue Dec 13, 2005 10:10 am ] | ||
Post subject: | |||
well
Where x,y is the pivot point relative to the bottom left of the image. If it rotates weirdly, try adjusting those values. |
Author: | do_pete [ Tue Dec 13, 2005 11:07 am ] |
Post subject: | |
Yes and pre rotate your pictures and store them in an array, It'll make it go much faster on slower computers |