Deactivate
(Difference between revisions)
Dahnielson (Talk | contribs) |
|||
Line 6: | Line 6: | ||
if isKeyPressed("DOWN") then deactivate(object) end | if isKeyPressed("DOWN") then deactivate(object) end | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] |
Revision as of 17:58, 4 February 2014
Deactivate an object.
object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end