[SOLVED] Help setting up anim8 with platformer
Posted: Sat Dec 19, 2015 11:48 pm
EDIT 2: SOLVED! Just restructured my whole animation code do to a Eureka! moment and everything is working much better now! On to adding more animations
EDIT: Original problem solved but there is still more polish needed on the current animations. The issues I'm facing right now are switching from left to right or right to left movement too quickly sometimes causes idle animation while moving, and holding left and right down at the same time causes the sprite to sit in one spot with either the left or right animation looping. I'll be working on these whenever I have time but always appreciate more help!
Thought I was done struggling when I finished my movement code, apparently not!
I'm trying to set up anim8 and right now I have 3 animations: idle, left, and right. What happens right now is the idle animation works fine, if you aren't touching any buttons you idle with animation. If you hold ANY button at ANY time other than space bar(jump) the right animation will start, but I only want it to happen if the player is on the ground and moving right. The left animation never works. I think maybe I'm going to have to scrap all of my animation code but I don't know what to do to make it work right.
Here is the repository please check it out: https://github.com/giantofbabil/Space-Chow.love
I greatly appreciate any help with this, thanks.
EDIT: Original problem solved but there is still more polish needed on the current animations. The issues I'm facing right now are switching from left to right or right to left movement too quickly sometimes causes idle animation while moving, and holding left and right down at the same time causes the sprite to sit in one spot with either the left or right animation looping. I'll be working on these whenever I have time but always appreciate more help!
Thought I was done struggling when I finished my movement code, apparently not!
I'm trying to set up anim8 and right now I have 3 animations: idle, left, and right. What happens right now is the idle animation works fine, if you aren't touching any buttons you idle with animation. If you hold ANY button at ANY time other than space bar(jump) the right animation will start, but I only want it to happen if the player is on the ground and moving right. The left animation never works. I think maybe I'm going to have to scrap all of my animation code but I don't know what to do to make it work right.
Here is the repository please check it out: https://github.com/giantofbabil/Space-Chow.love
I greatly appreciate any help with this, thanks.