so while debug every pFrame have
m_pobTexture = 0x00000000 {m_bPVRHaveAlphaPremultiplied=? m_ePixelFormat=? m_uPixelsWide=??? …}
but
m_strTextureFilename = “hero0.png”
Hi Thanks for this code, it helped me to solve my own problem.
I used a slightly different code than yours, I didn’t used pFrame = CCSpriteFrame::create(“hero0.png”, rect);
but had no error. Maybe the problem is with your files.
here is my working code:
charAnimation = CCAnimation::create( );
charAnimation > setDelayPerUnit;
charAnimation> setLoops( INFINITY ); // looping the animation, working so far until I closed the iOS simulator (1 hour). if anyone knows a better way, please let me know.