Jump to content

How to show the boolean value on debug message??


fatboyarming
 Share

Recommended Posts

How to show the boolean value on debug message??

Is it possiable to do it ??? Thanks

var IsItTurnOn = true;

function update()
{
  //console.log(IsItTurnOn);
   if(something...) {
   IsItTurnOn = true;
    } else {
    IsItTurnOn = false;
     }
}

function render() {

    // Display
    game.debug.???????(isTurnOn);


}

I don't want to use console.log method

because it is very hard to debug

1.JPG.75f961242480a1fb88d6ea99f14928e7.JPG

 

anyidea?? thanks

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...