Archived

This topic is now archived and is closed to further replies.

kajjait

messin around with lesson 3

Recommended Posts

I have been fooling around with lesson 3, trying to add animations to my little sponge guy when you move him, but before i start with that theres a small problem i am having, when i switch the sprites frame and the image changes it seems to leave pieces of the previous image on the screen (im probably not explaining it right so download the compiled project here http://24.44.225.59:8080/code/2danim.zip windows only :[ )

Share this post


Link to post
Share on other sites
ahhh i found the problem, it was a typo :[

in CSpriteBase towards the end you will find this:

------------------------------------------------------
if(!mW) mW = mAnim[count].image->w; if(!mH) mH = mAnim[count].image->w;
------------------------------------------------------

well at the end it should be mAnim[count].image->h; instead of image->w . no one picked up on this because the vikings width is greater than the height :\ but sincee i used an image with the height greater than the width it was a big problem :[

cone3d, i hope you fix your tutorial now :[

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Well, 1)SDL is pretty easy and 2)I often see SDL questions posted in Game and General Programming forums.

Share this post


Link to post
Share on other sites