Phaser API Documentation

  Version: 

Member of: Phaser.Time.Clock

delayedCall(delay, callback, [args], [callbackScope])

Description:

Creates a Timer Event and adds it to the Clock at the start of the frame.

This is a shortcut for #addEvent which can be shorter and is compatible with the syntax of the GreenSock Animation Platform (GSAP).

Parameters:

name type arguments description
delay number

The delay of the function call, in milliseconds.

callback function

The function to call after the delay expires.

args Array.<*> <optional>

The arguments to call the function with.

callbackScope * <optional>

The scope (this object) to call the function with.

Returns:
Description:

The Timer Event which was created.

Since: 3.0.0
Source: src/time/Clock.js (Line 198)