Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Sprites flicker during scale animation - Coco2d-x c++

$
0
0
I have a grow / shrink animation sequence. But for some reason the sprite does not scale smoothly. I did change the animation interval and disabled depth test but it did not fix this. What can be the reason behind this ? Does does have something to do with art asset that is used ? ScaleTo* zoom_in = ScaleTo::create(1, 1.5); ScaleTo* zoom_out = ScaleTo::create(1, 1); Sequence* anim = Sequence::create(zoom_in,zoom_out, NULL); RepeatForever *rep = RepeatForever::create(anim); rep->setTag(STATION_HIGHLIGHT_ANIMATION); station_image->runAction(rep);

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>