EffectNodes-for-cocos2dx
EffectNodes-for-cocos2dx copied to clipboard
Could you update your code to The V3.3 please
Hi, i'm very interested by your EffectNodes , could you please update it to the V3.3 ?
kind regards
sorry for my late reply! thanks for your attention. but i am too busy with company's project those month and it also will take one or two month to be finished. after that, i will update EffectNodes to v3.x and together add some more effects.
i tried to translate effectNodes to 3.x yesterday, and i found it is quite easy except some small obstacles. i think i can make it done in several days now. i will update it as soon as possible.
Thanks, its will be very helpful for me :)
3.x version has been uploaded, see branch v3: https://github.com/wantnon2/EffectNodes-for-cocos2dx/tree/v3
I'm using the code from v3, with only the files code/shatter/ensShatterNode.h
and code/shatter/ensShatterNode.cpp
, without the common header.
It could be a change from cocos2d-x v3.6, but the original sprite doesn't doesn't disappear, and the shatter effect's stick around after they've finished moving. Is this related at all, or should I make a new issue?
e: Oh, the shatter sticking around was because I set the duration to 0.5f, switching it to 4 fixed the issue, so there's a bug, I'll try to fix. The original sprite still doesn't go invisible though.
e2: Nevermind, it looks like you manually setOpacity(0)
on the sprite before you run the action on it, so all in all, the only bug is the 0.5f duration thing, which I'll make a ticket for.
https://github.com/tankorsmash/Cocos2dx-ShatterSprite Made a new repo just for the shatter sprite, I'm on cocos2d-x 3.10 but it would probably work on any v3.