[gameprogrammer] Re: advanced game

Simple answer - rotate the image by the correct angle.

Hard part - finding the correct angle.

You could store a normal vector in your level definition file which
tells the main animation section what angle to rotate through
depending on where in the level you're standing.  Or this angle could
be calculated from other information in your level definition file.

Or you use some kind of collision detection routine.

On 4/27/07, Yasser Gonzalez <yassergs@xxxxxxxxxxxxxxx> wrote:
Do you have seen Sonic Adventure Games???

Do you have seen how he change his body rotation when is running over a
spiral????. Something like this image.
Do you have any idea how make something like that????




--
Paul Smith
Computer programmer

paul@xxxxxxxxxxxxxxxxxx

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: