http://www.oxeyegames.com/wiki/index.php?title=FrameUpdate&feed=atom&action=historyFrameUpdate - Revision history2024-03-29T13:42:48ZRevision history for this page on the wikiMediaWiki 1.16.0http://www.oxeyegames.com/wiki/index.php?title=FrameUpdate&diff=361&oldid=prevThewreck: 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 ...'2010-01-19T12:44:50Z<p>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 ...'</p>
<p><b>New page</b></p><div>{{EngineHook|<br />
frameUpdate<br />
|<br />
This hook is called everytime the game needs to be updated. Things that change over time should be performed here.<br />
|<br />
{{MethodParam|time|A number|This is the time passed since the last frameUpdate, in seconds.}}<br />
}}<br />
=== Example ===<br />
<pre><br />
local totalPassedTime = 0<br />
<br />
local function updateMyGame(time)<br />
totalPassedTime = totalPassedTime + time<br />
end<br />
<br />
hook.add("frameUpdate", updateMyGame)<br />
</pre></div>Thewreck