Deactivate

From MaratisWiki
Revision as of 02:03, 11 April 2012 by Vegas (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox