The timeline module is used for setting up a loop that will usually run in the background of a game for example. The loop that moves all the game objects etc. By default, it will run 30 times per second and execute whatever code you have in the loop function.
- currentFrame : Number
- The current frame number. Starts at 1 and increases with 1 each time the loop function is run.
- fps : Number
- The number of frames per second that the loop will run with. Setting this also changes
core.settings.fps. If that property is changed, the loop has to be restarted for it to take effect.
- running : Boolean
- True if the timeline is currently running, false otherwise.