Tuesday, April 11, 2017

Gamemaker Day 27

Today I learned how to fix my the problem i had yesterday, the bullet doesn't actually goes the direaction of my character when it's standing still. What i did : I just added a line of code for the fix, but it took me longer than i thought, the problem was whenever my character have horizontal speed, the bullet will go 180 degree. so I extended the code by the "if" function without (0>hspeed), turn out this line of code just fixed the problem. so I just added a line of code at the bottom, whenever my character has the animation of walking backward, then the bullet will go 180 degree.

before:



after:




the next day I'm going to add walls to level 1.

No comments:

Post a Comment