Or maybe it’ll be easier to port this:
https://github.com/syuhari/Blade ?
Any suggestions?
I think it isn’t difficult to port this one. If it is not done for you then let me know. I’ve ported it.
Hey guys,
MY PROBLEM:
I have used motion streak for my needs which i just mentioned and it worked nicely.
But I was also trying to port this project for my project(cocos2dx v3.3) for a try.
My files are attached as Classes.zip.
Notable changes that I did:
I commented the draw() method in CCBlade (in both .h and .cpp).
It has compiled.
As draw() is final in CCNode v3.3 I cannot override it and hence have commented to check other parts of code but what should be the alternative of overriding draw() for this upgrade?
Classes.zip (5.5 KB)
Unfortunately I don’t understand how it works at all…
But may be this post will be usefull for you: http://stackoverflow.com/questions/22549233/cocos2d-x-3-0-draw-vs-ondraw
why don’t you use
*void draw(cocos2d::Renderer renderer, const cocos2d::Mat4& transform, uint32_t flags)
i use it enter link description here
it is no problem on the cocos2d-x3.0
but…
CCBlade does not work on the cocos2d-x 3.8 version.
thank you ~ smipatel88
but It works differently than ‘CCBlade’.
End of CCBlade is pointed.
and CCBlade will start to disappear from the old part.
but ‘MotionStreak’ disappears at a time.
well play with fading time, you will get desire output.