An issue happens on both versions when trying to destroy a timeline like this, even while it is playing. The error is different for each phaser version though.
on 3.85.0-beta.1 the error is as follows:
Uncaught ReferenceError: i is not defined
at Timeline2.clear (phaser.js:233673:14)
at Timeline2.destroy (phaser.js:233752:14)
on 3.80.1 the error is as follows:
TypeError: Cannot read properties of null (reading 'events')
at Timeline2.destroy (phaser.js:233464:41)
Version
Description
An issue happens on both versions when trying to destroy a timeline like this, even while it is playing. The error is different for each phaser version though.
Example Test Code
on 3.85.0-beta.1 the error is as follows: Uncaught ReferenceError: i is not defined at Timeline2.clear (phaser.js:233673:14) at Timeline2.destroy (phaser.js:233752:14)
on 3.80.1 the error is as follows: TypeError: Cannot read properties of null (reading 'events') at Timeline2.destroy (phaser.js:233464:41)