How to add text to game

I have a neat little game that I wanted to add a score for, but I couldn’t figure out how to add the text of the score in the corner. I already tried to use extensions like arcade text, but I couldn’t figure out how and it kept throwing errors. How can I add text to my project without much hassle and errors? project linked below.

2 Likes

Hello @jack8990, what you’re ganna want to do is addthe extention called “arcade-text”


an then do this

tell me if you need any further assistance! good luck with you’re game!

1 Like

Thank you @Mr_Duck for all the help these last two forums posts! Have an awesome week, and here’s to many more.

1 Like

and there is a default command for text called scene.createRenderable and it can look like this

scene.createRenderable(10,function(target,camera) {

target.print(“Text”,x,y,1)

})

the “Text” is what ever text you want

the x is what ever x position you want

the y is what ever y position you want

and the 1 is what ever color you want

and the 10 up there is the z depth