Forums » C++ Framework » I use CCSpriteFrameCache to load anim file.And use CCAnimate::actionWithAnimation to play. But after a phone call it begins to draw wrong pic »
| adou liu | I use CCSpriteFrameCache to load anim file.And use CCAnimate::actionWithAnimation to play. But after a phone call it begins to draw wrong pic | ||
|---|---|---|---|
|
Added by adou liu about 1 year ago
Is there anything that I need to do when AppDelegate::applicationDidEnterBackground() and AppDelegate::applicationWillEnterForeground() is called ? I tried to remove the orignal animation and loaded it again but it crashed! So if anyone has occured with these problem or has any idea ,please tell me.Thanks! I think I need to do sth. when onPause and onResume; I tried it. Every interrupt will cause the animate draws wrong pic! |
||
| adou liu | RE: I use CCSpriteFrameCache to load anim file.And use CCAnimate::actionWithAnimation to play. But after a phone call it begins to draw wrong pic | ||
|
Added by adou liu about 1 year ago
anyone know it? |
||
| adou liu | RE: I use CCSpriteFrameCache to load anim file.And use CCAnimate::actionWithAnimation to play. But after a phone call it begins to draw wrong pic | ||
|
Added by adou liu about 1 year ago
I sovle it. On android phone ,you should avoid using pvr.ccz file as image. I use normal png pic and it works fine. pvr.ccz may work fine on iphone and other phone using pvr graphic card.So that's may be the reason why the official testes don't use pvr.ccz in the demo. |
||
| Andre Rudlaff | RE: I use CCSpriteFrameCache to load anim file.And use CCAnimate::actionWithAnimation to play. But after a phone call it begins to draw wrong pic | ||
|
Added by Andre Rudlaff about 1 year ago
PVR texture compression is a proprietary texture compression format, only supported by PowerVR chips (Motorola and some Samsung Phones fore example) You might still be able to use the compressed files. Just check if the appropriate OpenGL extension is available. See http://developer.android.com/guide/topics/graphics/opengl.html#textures for a discussion on texture compression on Android. |
(1-3/3)