fatboyarming Posted March 26, 2018 Share Posted March 26, 2018 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 anyidea?? thanks Link to comment Share on other sites More sharing options...
PsichiX Posted March 26, 2018 Share Posted March 26, 2018 isTurnOn.toString() or '' + isTurnOn or `${isTurnOn}` Link to comment Share on other sites More sharing options...
fatboyarming Posted March 28, 2018 Author Share Posted March 28, 2018 On 2018/3/26 at 5:15 PM, PsichiX said: isTurnOn.toString() or '' + isTurnOn or `${isTurnOn}` Thank you so much!!! I find the easy way solve my problem game.debug.text(isTrunOn, x,y); Link to comment Share on other sites More sharing options...
Recommended Posts