Today I learned how to make an animation for my main character, by using "if" function. what i did: I made two more sprites for my animation , one for walking forward , anther one for walking backward. I found some animation image from the internet, and all i have to do is all the animation image combine to each other, in walking backward I used the flip function in gamemaker to make it face the opposite way. in coding I wrote if (0<hspeed) , which mean if my main character having horizontal speed in the right, then it will run my animation image by 0.15speed.
Th next day I'm going to add animation for the bullet and enemy,and fix the where the bullet go when my main character are facing, to make the game more cooler.
No comments:
Post a Comment