Step 4 – Click Detector and Script

Click Detector

  1. Open the Explorer Window.
  2. Goto your Shop>BuyButton.
  3. Press the white Plus next to BuyButton and add a ClickDetector.

Add the BuyScript

  1. Scroll to the top of the Explorer window.
  2. Open the Brainstorm Resources folder.
  3. Drag and drop the BuyScript onto your BuyButton.
  4. Double click the BuyScript to open the Script editor.
  5. We will start coding on line 17.