Home

Awesome

Timers

An implementation of both setTimeout and setInterval from JS in GameMaker Studio 2.3

Usage

  1. Copy setTimeout, setInterval, and setManager into your project
  2. Create an instance of the setManager at game start (alternatively, call __INTERVAL_UPDATE__ and __TIMEOUT_UPDATE__ every frame)
  3. Create an timeout or interval using setTimeout/setInterval respectively
  4. Use clearTimeout/clearInterval to stop them from running

Extra