Adding C Blocks
Let's add this C block:
The block specification
In Specs.as
, add the block to the commands
array:
src/Specs.as
// control - sprite
["run %n% of the time", "c", 6, "runPercentOfTheTime", 50],
// ...
// control - stage
["run %n% of the time", "c", 106, "runPercentOfTheTime", 50],
You will notice the block type is c
.