Ok so this is the image which contains all possible movements:http://dc251.4shared.com/img/7j1ytD2...rite-anim2.bmp
And this is the code that moves the sprite:
How can i make it do the right animation? Please HELP!!Code:if(key [KEY_LEFT]) x-=1 ; //walks left if((key [KEY_LEFT]) && (key [KEY_R])) x-=2; //runs left if(key [KEY_RIGHT]) x+=1; // walks right if((key [KEY_RIGHT]) && (key [KEY_R])) x+=2; //runs right if(key [KEY_DOWN]) y+=1; //walks down if((key [KEY_DOWN]) && (key [KEY_R])) y+=2; //runs down if(key [KEY_UP]) y-=1; // walk up if((key [KEY_UP]) && (key [KEY_R])) y-=2; //runs up



LinkBack URL
About LinkBacks


