Deactivate
(Difference between revisions)
Vegas (Talk | contribs)
(Created page with "Deactivate an object. object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") t...")
Newer edit →
(Created page with "Deactivate an object. object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") t...")
Newer edit →
Revision as of 03:03, 11 April 2012
Deactivate an object.
object = getObject("object") function onSceneUpdate() if isKeyPressed("UP") then activate(object) end if isKeyPressed("DOWN") then deactivate(object) end end
NOTE : For now deactivate only hide an object but the object still interacts with environment, this is a bug that will be corrected in the next maratis version.