dakikifr

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
dakikifr

Kickstarter Backer
  • Сообщения: 40

Nate

Hi Kiki, the difference is described here:
http://esotericsoftware.com/spine-using ... s/#scaling
Аватара пользователя
Nate

Nate
  • Сообщения: 9766

dakikifr

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

Kickstarter Backer
  • Сообщения: 40

dakikifr

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

Kickstarter Backer
  • Сообщения: 40

Nate

Awesome, thank you! :love: You get a badge! :)
Аватара пользователя
Nate

Nate
  • Сообщения: 9766


Вернуться в Runtimes