AnAL animation issue
Posted: Tue Mar 11, 2014 6:27 pm
I'm trying to use the AnAL library to create separate animations which get drawn dependent on what the active Image variable "state" is set to. I have managed to get the left and right walking animations working (random luck and not to sure why it does work). But now I'm trying to get my jumping code to change state and draw the correct animation, however this is not working and the static image given to the player shows.
So my questions are how do I get the anim2 animation to work once the user presses the space bar, and from my opinion I really don't think the way I have written the active image states is the most suitable (but it possibly could be) so any suggestions on how to improve this would also be greatly appreciated.
I've attached the full main.lua file.
Thanks!
So my questions are how do I get the anim2 animation to work once the user presses the space bar, and from my opinion I really don't think the way I have written the active image states is the most suitable (but it possibly could be) so any suggestions on how to improve this would also be greatly appreciated.
I've attached the full main.lua file.
Thanks!