-
Book Overview & Buying
-
Table Of Contents
App Inventor 2 Essentials
By :
In our game, we have a label that displays the score or the words "Game Over". Now that we have implemented levels as well, we also want to display the level within that label.
As shown in the following screenshot, we used the join block to join two pieces of information and display it in the label—the word Score: (there is a blank space after the colon) and the value of the score. Now that we want to display the level, we will add three more pieces of information to this join block. There is another blank space after the score (value), followed by the word "Level: " (there is also a blank space after the colon here), and finally the value of level.
To make room for these three new pieces of information, we need to add strings to the existing join block. Click on the blue square in the top left corner of the join block. This will open a pop-up window. Inside this popup, drag the string block from the top left corner into the join block on the...
Change the font size
Change margin width
Change background colour