kopia lustrzana https://github.com/backface/turtlestitch
changed "switch to scene" to be a stop block
rodzic
62647c8dee
commit
c6cf2413d3
|
@ -36,6 +36,7 @@
|
|||
### 2021-09-08
|
||||
* objects: changed category for "switch to scene" to control
|
||||
* blocks, objects, threads: new hat block for "when this scene starts"
|
||||
* blocks, threads: changed "switch to scene" to be a stop block
|
||||
|
||||
### 2021-09-07
|
||||
* blocks, objects, threads: new change-of-scene event
|
||||
|
|
|
@ -5202,7 +5202,8 @@ CommandBlockMorph.prototype.isStop = function () {
|
|||
return ([
|
||||
'doForever',
|
||||
'doReport',
|
||||
'removeClone'
|
||||
'removeClone',
|
||||
'doSwitchToScene'
|
||||
].indexOf(this.selector) > -1);
|
||||
};
|
||||
|
||||
|
|
|
@ -4735,6 +4735,7 @@ Process.prototype.doSwitchToScene = function (id) {
|
|||
idx = this.reportBasicRandom(1, scenes.length());
|
||||
break;
|
||||
}
|
||||
this.stop();
|
||||
ide.switchToScene(scenes.at(idx));
|
||||
return;
|
||||
}
|
||||
|
@ -4748,6 +4749,7 @@ Process.prototype.doSwitchToScene = function (id) {
|
|||
scene = scenes.at(num);
|
||||
}
|
||||
|
||||
this.stop();
|
||||
ide.switchToScene(scene);
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue