math · reference
constrain·
Keeps a number between low and high: handy for keeping a sprite on screen.
- use
constrain(num, low, high)- num
- the block starts with
1.1 - low
- the block starts with
0 - high
- the block starts with
1 - kind
- a value: it goes inside another block
- drawer
- Math, in the code room's blocks
player two knows this block
Ask it how constrain works in your game.