walking sprite help

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Chris
Posts: 1580
Joined: Wed Sep 30, 2009 7:22 pm

Re: walking sprite help

Post 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.
Fighting for peace is declaring war on war. If you want peace be peaceful.
User avatar
MikuzA
Posts: 394
Joined: Thu Aug 08, 2013 8:57 am

Re: walking sprite help

Post 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.
Why so serious?

Business Intelligence, Data Engineering, Data Mining
PHP, HTML, JavaScript, Bash/KornShell, Python, C#, PL/SQL
MySQL, DB2, Oracle, Snowflake
Pentaho, DataStage, Matillion, Unity3D, Blender
User avatar
Chris
Posts: 1580
Joined: Wed Sep 30, 2009 7:22 pm

Re: walking sprite help

Post 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
Fighting for peace is declaring war on war. If you want peace be peaceful.
Post Reply

Return to “Beginner Help and Support”