Jump to content
  • Advertisement

Archived

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

kajjait

messin around with lesson 3

This topic is 6052 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
i think the problem is with the sprites height, it isnt getting set properly... ill trry to get it working...

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
yeah, it''s ok. Sorry for not replying sooner (I was away for 2 days). And thanx for noticing that typo. I''ll fix the tut.


---
cone3d
http://cone3d.gamedev.net
My software never has any bugs - it just generates random features

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!