• Runtimes
  • Cocos2d-x, CCNode/CCSkeletonAnimation scale property

  • Изменено
Related Discussions
...

Hi Nate,

I'm still using cocos2d-x, and I was wondering .. about the scale property of the CCNode and the CCSkeletonAnimation.

Is there any difference (performance, memory usage, ...) between this code:

	skeletonNode = CCSkeletonAnimation::createWithFile("spineboy.json", "spineboy.atlas",1.0);
	skeletonNode->setScale(0.5);

and this code

	skeletonNode = CCSkeletonAnimation::createWithFile("spineboy.json", "spineboy.atlas",0.5);
	skeletonNode->setScale(1.0);

Is one better than the other?

(I'd rather use the CCNode scale property, since I can control all my sprites scaling with the same method)

Thanks a lot!
Kiki

Ok thanks!
I searched the forum, but forgot to search the doc (sorry) 😃
So there is a slight difference then.
Thanks again

Back'd your new KS ! (I missed the first one for only 2 days :x)

Awesome, thank you! :love: You get a badge! 🙂