c++ - how to dissolve a sprite into pixels using cocos2d-x? -


i have logo image , want dissolve small square pixels images down top of logo image fade in action , logo remove game start. how can in cocos2d-x v3 using c++ coding or other way?thanks in advance.

there's nothing in code have permission ask question made that.

ccaction *fadein = [ccfadeto actionwithduration:0.5 opacity:0.5]; ccaction *fadeout = [ccfadeto actionwithduration:0.5 opacity:1.0]; ccsequence *pulsesequence = [ccsequence actions:[fadein copy],[fadeout copy], nil]; 

i think method here have logo dissolve pixels, brute force, mean rebuilding logo 1 pixel @ time adding single pixels sprites onto layer, instead of logo.png have ton of whitepixel.png redpixel.png etc, send them action. depending on how fast dissolves, work (although rebuilding logo pixel art take long time, i'd recommend doing pixel matrix , write function place sprites).

alternatively, can fake covering/obscuring/fading sprite top bottom , spitting particles out along wipe line. if want un-print 1 line @ time, you'd need 2 obscuring images, 1 cover vertically go line line, 1 wiping next line horizontally. easier demonstrate via video, add skype reduxde if want , can show construction paper.

i'm bad particles, long you're picking particles match colors in logo, peoples eyes won't able track realize pixels aren't 1:1 match up.

for logo that's 160 100 pixels though, you're talking 16,000 sprites brute force method, undoubtedly lag out devices (i've managed 700-800 sprites in motion before until engine chugs).

probably best bet hire graphic artist , animation using sequence of photos (which choppy compared true dissolve).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -