WPF, C#, Objective C and a little Math

cocos2dx addSpriteFramesWithFile problem – garbage on the screen

I noticed that in some cases after addSpriteFramesWithFile function is called, the loaded frames are displayed for 1 frame. This was is quite disturbing and exists both in Windows implemenation and on iOS devices.

I do not really know what is the reason for this (might be details of addSpriteFramesWithFile implementation), but the solution was simple: after addSpriteFramesWithFile is done, I call visit() of the current scene, and nothing unusual appears on the screen.

Categorised as: Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>