Really handy function for when you are creating arrays of animation data but it's using frame names and not numbers.
Really handy function for when you are creating arrays of animation data but it's using frame names and not numbers. For example imagine you've got 30 frames named: 'explosion_0001-large' to 'explosion0030-large' You could use this function to generate those by doing: Phaser.Animation.generateFrameNames('explosion', 1, 30, '-large', 4);
The start of the filename. If the filename was 'explosion0001-large' the prefix would be 'explosion'.
The number to start sequentially counting from. If your frames are named 'explosion_0001' to 'explosion_0034' the start is 1.
The number to count to. If your frames are named 'explosion_0001' to 'explosion_0034' the stop value is 34.
The end of the filename. If the filename was 'explosion_0001-large' the prefix would be '-large'.
The number of zeros to pad the min and max values with. If your frames are named 'explosion_0001' to 'explosion_0034' then the zeroPad is 4.
An array of framenames.
Animation Singleton