iDevGames Forums
Cocos2D - moving sprite deformed, flickering - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Cocos2D - moving sprite deformed, flickering (/thread-8742.html)



Cocos2D - moving sprite deformed, flickering - aerospaceman - Mar 23, 2011 01:21 PM

this occurs in both the simulator and the device. I have a sprite that is moving, its position being updated base on the physics of the game. The side in the direction of movement appears faded/slightly squished. Is there anything I can do to eliminate this effect? There's also a shimmering effect on the device, where the black edges of the sprite appear to flicker against the mostly white background.


RE: Cocos2D - moving sprite deformed, flickering - Skorche - Mar 23, 2011 01:48 PM

The first issue you describe sounds like it's simply the switching speed of the screen you are using. Colors don't change instantly, but take a few milliseconds to fade from one color to the next.

The second issue might be that you need to use premultiplied alpha, but it's hard to say for sure without more information.


RE: Cocos2D - moving sprite deformed, flickering - aerospaceman - Mar 23, 2011 02:50 PM

but I thought the GLblend function were to be overwritten only when the simulator differs from the device. The graphics look the same in my case.