Type: Game mechanic
Level: 1 star
Pages: 1
Description: This displays a picture of a coin and the number of coins collected in top right hand corner.
Kode
- WHEN DO [display][Coin][x][plus][numvar:coin counter][x large font][screen top right]
Alterations
Remove coin image and have text instead
Very useful if you are not actually collecting coins. Change the text to whatever you need.
- WHEN DO [display][Text: Coins: ][plus][numvar:coin counter][x large font][screen top right]
Change size of the coin
The coin is a bit big, to reduce it to the size of the text try:
- WHEN DO [display][Coin][scale][0.5][x][plus][numvar:coin counter][x large font][screen top right]
Only have counter displayed when a coin is collected
- WHEN [once] DO [boolvar:display][equals][true]
- WHEN [numvar:coin counter][changed] DO [boolvar:display][equals][true]
- WHEN [boolvar:display]
- …WHEN DO [display][Text: Coins: ][plus][numvar:coin counter][x large font][screen top right]
- …WHEN [countdown timer][2] DO [boolvar:display][equals][false]