Jump to content
  • Advertisement
Naash

2D Sprites flicker during scale animation - Coco2d-x c++ (FIXED)

This topic is 501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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);

 

To others who might come here looking for a solution to this issue or something similar,
I was able to fix this issue by enabling ‘CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL’ in ccConfig.h

Edited by Naash
I fixed this issue and wanted to share the solution.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!