Deactivate

(Difference between revisions)
Jump to: navigation, search
(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
 
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.
 

Revision as of 21: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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox