Open farwayer opened 11 years ago
I agree with you. But i didn't find a way to take out additional affine transform. If use function like setPosition(), it will be too much trouble.
At this moment I see two way to make it without patching CCNode and without use setScale(), setPosition() etc.:
CCAffineTransform CCMySprite::nodeToParentTransform(void) { CCAffineTransform transform = CCSprite::nodeToParentTransform(); if (m_bTransformDirty) transform = CCAffineTransformConcat(transform, m_tOtherTransform); return transform; }
and use it for display.
I would help, but I have no time now.
Display can be many type, like particle, so subclass CCSprite do not satisfy requirement. Maybe set shader program to CCSprite for additional affine transform wiil be a good idea, but i am not familiar with shader.
你好,我下载了fla的demo,导入库中元件的时候提示:未在 Fla 发生 JavaScript 错误。ReferenceError: Skeleton is not defined, 库中找到符合骨架结构的元件!
Thx a lot for this awesome tool! But it's painful to update cocos2d-x engine to new version. And it's look very bad to patch internal engine classes. Any chance to take out additional affine transform's from CCNode class?