Functions

JS4Scratch Reference Manual:

Known Bugs

Small values for setSize() of clones may not work properly i.e. if setSize(value) is less than 40? Clone does propagate but behaviour is erratic.

Example:

Alien.whenReceiveMessage('Start', function(){
    Score = 0
    this.hide()
    this.setSize(40) // but if setSize(30) then irratic behaviour
    x = -210
    y = 120
    // make a total of 32 clones
    for (var counter1 = 1; counter1 < 5; counter1++) {// make 4 rows of clones
         for (var counter2 = 1; counter2 < 9; counter2++) {// make 8 coloumns of clones
            this.clone()
            console.log('create clone')
            this.wait(0.25)
            x = x + 60
        }
        y = y - 70
        x = -210
    }
    console.log('finished making clones')
})