FrameUpdate

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Thewreck (Talk | contribs)
(Created page with '{{EngineHook| frameUpdate | This hook is called everytime the game needs to be updated. Things that change over time should be performed here. | {{MethodParam|time|A number|This ...')

Latest revision as of 12:44, 19 January 2010

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