Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

GameObj.setActive(bool)

Parameters

bool bool: Set whether it will be active or not.

Description

Enable/Disable the GameObj, if is false then the GameObj will not be called by the game loop.

You can test this snippet of code here.

let txt = new Text("is active", 10, 10, 100);
let time = 0;

new GameObj().update = function(){
   if (time > 5){
      txt.setActive(false);
   }
   time += Ramu.time.delta;
};

Ramu.init();