Some blocks have wires sticking out of them. These are script blocks and you script by connecting their wires to other script blocks.
When you tap Play, script blocks execute and do their thing. E.g. Set Score sets the current score, so if we wire the Number 3 to it, the score is set to 3.
Blocks execute top-to-bottom, left-to-right. But you can plug in the yellow control wires to change the execution order. This is especially useful when you want to execute a block only some of the time. E.g. here I've wired a Button to If to Win, so when the player moves onto the button, then the game is won:
There are other wire colors as well:
- Blue is a number
- Green is an
X,Y,Zvector (such as a position)
- Orange is a rotation
- Red is either True or False
- Pink is an object
- Gray is a constraint
- Yellow is for execution control
That's the basics! Now, you'll probably learn a lot more by looking at some example scripts that show how to do useful game stuff. So start the app and look on the Build tab to find a game called "Tutorial". It's fully editable, so you'll be able to see and play around with each example script.