-
Moving Images
I found how to make an image move...
I now need to know how to make it rotate, and move in the angle it is rotated when I press my up arrow.
I need to know how to make it play different animations as it moves. Right now, I got a space ship with a frozen flame coming out the back:(
And I also need to know how to make it shoot... This is a big must:)
Please tell me where a tutorial is for these or just put the code in here. Thanks :)
P.S. Is it possible to put models into a visual basic program?
---------------------------------------------------------------------------------
-
Hey
that's a lot of things you are asking there.
You should do them one by one, learn one than the other and after you did them all and understand the code put it together.
Well for the turning of pictures there is a good way described on www.ur.co.nz. but using turned pictures normally is slow unless you use D3D.
for the angle wise movement you need trig. You just increase or decrease an variable for the angle when you press left or right
than you find the y and x coordinates by using
MoveX = cos(angle) * velocity
MoveY = sin(angle) * velocity
the angle var has to be in radians. to convert degrees to radians you need to multiply the Degrees by Pi/180.