mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Fix new sprites only showing up in the top-right quadrant
This commit is contained in:
parent
173fb6127c
commit
0527fcde64
1 changed files with 2 additions and 2 deletions
|
@ -1004,8 +1004,8 @@ class RenderedTarget extends Target {
|
|||
const newTarget = newSprite.createClone();
|
||||
// Copy all properties.
|
||||
// @todo refactor with clone methods
|
||||
newTarget.x = Math.random() * 400 / 2;
|
||||
newTarget.y = Math.random() * 300 / 2;
|
||||
newTarget.x = (Math.random() - 0.5) * 400 / 2;
|
||||
newTarget.y = (Math.random() - 0.5) * 300 / 2;
|
||||
newTarget.direction = this.direction;
|
||||
newTarget.draggable = this.draggable;
|
||||
newTarget.visible = this.visible;
|
||||
|
|
Loading…
Reference in a new issue