Pickup Coin

Type: Prop Brain
Level: 3 star
Pages: 2
Description: This brain can be found in the coins. The coin turns slowly on its axis. When it detects the player it picks up the coin, creates and/or adds to the coin counter and increments the coin count by 1. Very similar to Pickup Cash Wad.


page 1 @Detect – Raise Coin Count

  1. WHEN DO [turn slowly]
  2. WHEN [detect][player]
  3. …WHEN DO [objvar:player][equals][it]
  4. …WHEN [not][objvar:player][has brain][Display Coin Count] DO [objvar:player][add brain][Display Coin Count]
  5. …WHEN DO [objvar:player][numvar:coin counter][increment by][1]
  6. …WHEN DO [play fx][fx:Pickup Coin][at position][position]
  7. …WHEN DO [switch page][page: @Drop – Lower Coin Count]

page 2 @ Drop – Lower Coin Count

  1. WHEN [started to][not][held in inventory]
  2. …WHEN DO [objvar:player][numvar:coin counter][decrement by][1]
  3. …WHEN DO [switch page][page:@ Detect – Raise Count Count]


Change display of coin counter
You will need to alter the coin counter brain. Put it in a templated logic cube and use IWP on line 4 for your revised brain. Alterations for that brain can be found on its page.

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: