1
SFML wiki / Re: Animated Sprite class
« on: January 01, 2014, 05:08:50 pm »
Yeah, I'm not saying you should use my example That's just the modified version I made for myself. But I thought the bug is quite important.
Funny thing is - it works same way, because it uses m_currentFrame variable when calling the function and then basically the value is there, so you don't really need internal newFrame But when I tried to setFrame manually it made me scratch my head for a while before I've noticed the mistype.
Looking forward for the extended class! Thanks!
Funny thing is - it works same way, because it uses m_currentFrame variable when calling the function and then basically the value is there, so you don't really need internal newFrame But when I tried to setFrame manually it made me scratch my head for a while before I've noticed the mistype.
Looking forward for the extended class! Thanks!