Display Coin Count

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

  1. 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.

  1. 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:

  1. 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

  1. WHEN [once] DO [boolvar:display][equals][true]
  2. WHEN [numvar:coin counter][changed] DO [boolvar:display][equals][true]
  3. WHEN [boolvar:display]
  4. …WHEN DO [display][Text: Coins: ][plus][numvar:coin counter][x large font][screen top right]
  5. …WHEN [countdown timer][2] DO [boolvar:display][equals][false]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: