And another math problem…
Posted by petterroea (twitter: @petterroea)
December 17th, 2011 10:24 am
I have allready had one problem, but here comes another one! I want a image to rotate 20 pixels from a center coordinate, based on degrees in the rotation. This so i can make a muzzleflash. How do i do that? I am only 13 yrs old, so school hasn’t covered this stuff yet
It depends on how you’re drawing sprites.
Mathematically, you’d move the image 20 pixels so that the rotation centre is at the origin, then rotate, then add the 20 pixels back again.
Im 13 as well
i tought myself java at home. Came here to make a game and(never)… I’m failing
You’l make it
I got most of my game engine done today