Particle systems using a custom picture is simple enough to set the PNG name on the last line of plist. However, in the actual use, found that the custom image can not use the original shape, for example, set a long picture, the result is really a ball.
Turned the plist and CC. Particlesystem definition, no custom shape properties found, for the moment cocos2d can not use the original shape of the custom picture, the default display will be compressed into a square diagram, a long picture is compressed. (If an expert has an accurate statement, please leave a message to tell me)
But we can get around this problem by simple tricks.
To restore the original effect, you can use Setscalex/setscaley to control the size of the graph after initialization.
It's actually stretching the entire particle system, but that's exactly what we need.
such as the wind effect below. If you do not set ScaleX, the effect is a piece of white ball.
Cocos2d-js particle system uses custom images to restore the original image width and height