Hi there,
This is my first post - I've looked everywhere for this but can't figure it out.
Basically, I'm creating a drawing app where lots of sprites are added as the user swipes their finger on the screen to create a spraycan effect (every frame I randomly position 10 flecks of "spray" - each represented by a small sprite - around the touch location).
It gives a really nice effect but slows down very quickly as you end up at 60 fps with 600 sprites per second being added to the screen!
My potential solution is:
As soon as the user lifts up their finger (on touches end), I convert all the sprites that were added during that section of drawing to one image (a bitmap / png or whatever).
My questions are:
1. How do I achieve this? I have found example code (and got it working) for taking a screenshot of the entire screen and converting that to a png file but I can't find any examples for ONLY converting some content. Could I add each set of sprites as children of another sprite and then convert this sprite somehow?
2. Is there another possible solution for avoiding slowdown that I'm missing. I'm using a spritesheet rather than individual sprites already and this made a small improvement but I still get real slowdown on device to 15 fps fairly quickly. It then really lags.
I'm using Cocos version 0.99.1
Any help would be really appreciated.
Many thanks.
Ian