PDA

View Full Version : Generate this kind of 2d burst or pulse



snrnsi1234
28th April 2016, 20:10
Hi, I'm currently trying to develop a game using Cocos2d-x using C++
I really need to generate this burst or (donut-shaped) pulse.
I'm having a difficult time how to generate such shape.

At first, I was thinking of scaling the image but that didnt work out because the line or "diameter" of the donut shape gets bigger accordingly.. LOL

Any experienced coders who can provide an equation of this thing? or maybe "mathematics" is more exact.
If you guys can provide ANY help, suggestion, or alternative recommendation, I'll be so glad^^

https://www.youtube.com/watch?v=ewnEE5mt1ZM

d_stranz
28th April 2016, 21:39
And how is this a Qt question? Doesn't Cocos2D have a forum for these kind of questions?