change border opacity drag v4
parent
a287126bcd
commit
a84ed5b61f
|
@ -465,7 +465,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
const targetZoneBorders = [];
|
const targetZoneBorders = [];
|
||||||
targetZones.forEach((targetZone) => {
|
targetZones.forEach((targetZone) => {
|
||||||
const targetImage = this.add.image(targetZone.x, targetZone.y, targetZone.name).setAlpha(0);
|
const targetImage = this.add.image(targetZone.x, targetZone.y, targetZone.name).setAlpha(0);
|
||||||
const targetBorder = this.add.image(targetZone.x, targetZone.y, "border").setAlpha(0).setScale(borderScale);
|
const targetBorder = this.add.image(targetZone.x, targetZone.y, "border").setAlpha(0.05).setScale(borderScale);
|
||||||
targetZoneBorders.push(targetBorder);
|
targetZoneBorders.push(targetBorder);
|
||||||
targetZone.block = null;
|
targetZone.block = null;
|
||||||
}),
|
}),
|
||||||
|
@ -505,7 +505,7 @@ import Layout from '../../layouts/Layout.astro';
|
||||||
|
|
||||||
droppedOnTargetZone = true;
|
droppedOnTargetZone = true;
|
||||||
targetZoneBorders[targetIndex].setVisible(true);
|
targetZoneBorders[targetIndex].setVisible(true);
|
||||||
targetZoneBorders[targetIndex].setAlpha(0);
|
targetZoneBorders[targetIndex].setAlpha(0.05);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue