We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10a3706 commit 697ba8bCopy full SHA for 697ba8b
1 file changed
src/time/Timer.js
@@ -231,15 +231,16 @@ Phaser.Timer.prototype = {
231
/**
232
* Starts this Timer running.
233
* @method Phaser.Timer#start
234
+ * @param {number} startDelay - The number of milliseconds that should elapse before the Timer will start.
235
*/
- start: function () {
236
+ start: function (startDelay) {
237
238
if (this.running)
239
{
240
return;
241
}
242
- this._started = this.game.time.now;
243
+ this._started = this.game.time.now + (startDelay || 0);
244
245
this.running = true;
246
0 commit comments