Post 93
Running Around
So I decided to work on the running code in my test game again. Last time I was over complicating everything, this resulted with me getting lost in a tangled web of various variables and pointless strings of code. This time I sat down and looked at it a different way. I just needed to change the basic "If" statement for my movement code.if (keyboard_check(ord("A"))) and !(keyboard_check(vk_shift))
This new code allows my sprite to have a different walking and sprinting sprite, well keeping the Idle Direction detector I created. Making it all look functional!
I have now exported the running sprites making the tester game look more functional! Now instead of having a black cube, I have a running sprite!
Tomorrow I will attempt to fix the problem where if I press both "A" and "D" the players sprite just stays moving right, no matter what order you press "A" or "D". Hopefully this fix is simple and useful and then I can move onto some more animations!
No comments:
Post a Comment