Deactivate
(Difference between revisions)
(Created page with "Deactivate an object. object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") t...") |
|||
Line 6: | Line 6: | ||
if isKeyPressed("DOWN") then deactivate(object) end | if isKeyPressed("DOWN") then deactivate(object) end | ||
end | end | ||
− | |||
− | |||
− |
Revision as of 20:25, 5 August 2012
Deactivate an object.
object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end