Updating the score label to display the level
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, ...
Get App Inventor 2 Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.