Another short hand way for creating movieclips
It's useful when you create a movieclip from sprites exported by https://www.codeandweb.com/texturepacker or other similar software and all frames for the movie clip are in single json file and has similar frame names. For example: frame0000.png, frame0001.png, frame0002.png, frame0004.png, etc. Then you can just call PIXI.MovieClip.fromSettings(5, 'frame', '0000', 0, '.png'); Maybe the name "fromSettings" is not the best choise, but I could not think of a better name, so any suggestions for changes in the comment, function name, parameters names, etc are appreciated. |
---|
|
src/pixi/display/MovieClip.js |
---|