Animations done

After a couple of hours, animations are finally working, you have the player running and after a couple of seconds he starts sprinting, this effect is being done by increasing the amount of pixels the image is moved per frame, as well as the animation of the sprite gets speed-ed up.

The only problem I ran with the animations is that I wasn't able to change the fps on the animations, I wanted to do that in order to be able to make the animation play in relation to the speed. In order to solve this problem I decided to instead create two animations, one for a normal speed and one for a faster speed, and depending on the speed of the character I switched to a certain animation.

here is a screen shot of two players running at different speeds...


also I was able to learn how to create variables for the objects, this way I can set the starting velocity of the two players at different speed:

No comments:

Post a Comment