Page 1 of 1

Re: walking sprite help

Posted: Tue Jan 07, 2014 10:47 am
by Chris
You will need bigger sprite sheets with more animations.

I don't like the way this is coded, you want to prototype for something like this.

Re: walking sprite help

Posted: Thu Jan 09, 2014 6:48 am
by MikuzA
Hello,

took a browse on your code, you could simply mimic the way it has been done when using the sword.
For example, adding to the movement the
'switchPlayerMode('swinging');'

just to simulate it, then on every movement it should do the same movement on the player when it swings the sword.

I'm unable to test this right away but I would think that it might be doing the movement superfast but not sure..

Hope that helps.

Re: walking sprite help

Posted: Thu Jan 09, 2014 9:47 am
by Chris
Oroton wrote:
you want to prototype for something like this.
I have no idea what that means??
It's the way of making JavaScript Objects..

http://en.wikipedia.org/wiki/Prototype_ ... _Framework
http://yehudakatz.com/2011/08/12/unders ... avascript/
https://developer.mozilla.org/en-US/doc ... /prototype