diff --git a/stitchcode/objects.js b/stitchcode/objects.js index 99fa7b97..4afdaa9f 100644 --- a/stitchcode/objects.js +++ b/stitchcode/objects.js @@ -1463,7 +1463,14 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'text length of %s with size %n', defaults: ["hello", 21] }; - + this.blocks.reportRandomPosition = + { + only: SpriteMorph, + type: 'reporter', + category: 'motion', + spec: 'random position', + }; + // pen blocks this.blocks.isPenDown = @@ -1820,7 +1827,7 @@ SpriteMorph.prototype.blockTemplates = function (category) { //blocks.push(block('gotoXYIn')); //blocks.push(block('gotoXYBy')); blocks.push(block('doGotoObject')); - blocks.push(block('doGlide')); + blocks.push(block('reportRandomPosition')); blocks.push('-'); blocks.push(block('changeXPosition')); blocks.push(block('setXPosition'));