FrameUpdate

From OxeyeWiki

Jump to: navigation, search

frameUpdate

This hook is called everytime the game needs to be updated. Things that change over time should be performed here.

Parameter Type Description
time A number This is the time passed since the last frameUpdate, in seconds.
Daisymoon Video Lib

Example

  local totalPassedTime = 0

  local function updateMyGame(time)
    totalPassedTime = totalPassedTime + time
  end

  hook.add("frameUpdate", updateMyGame)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox