FrameUpdate

From OxeyeWiki

Revision as of 12:44, 19 January 2010 by Thewreck (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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