I'm creating a platform game and I'm having some issues with my sword attack. Here is my demo https://dl.dropboxusercontent.com/u/8017129/folclore-minado/index.html. and here is my .capx file https://dl.dropboxusercontent.com/u/8017129/folclore-minado/capxfile.capx
First problem: When I'm facing left, my sword attacks to the right anyway.I already tried to use the mirror effect but nothing happen.
Second problem: As you can see, it's taking too long to my sword spawn another object to collide with the enemy and kill it. And if I jump and attack at the same time, my player create spawn object at wrong positions and times. I know I have to destroy the spawn object, but I didn't yet because this problem.
To jump is up arrow
To walk is left and right arrow
And to attack is Z
Hope somebody can help me out, thanks in advance!