modified superpositions to get only one superposition by mapitem

This commit is contained in:
2023-10-24 11:28:40 +02:00
parent 6f5062b774
commit ecc838abbb
3 changed files with 19 additions and 12 deletions

View File

@@ -522,7 +522,9 @@ export default {
});
// fadein intro
this.paper_main_object.opacity = (1 + Math.random())*0.001;
if(!this.mapitem.clone){
this.paper_main_object.opacity = (1 + Math.random())*0.001;
}
// the sub items for one concernement
this.paper_main_object.addChild(this.setPaperContour());
@@ -2142,10 +2144,12 @@ export default {
this.paper_main_object.position = this.pos = this.body.position;
// fadein intro
if (this.paper_main_object.opacity < 9) {
this.paper_main_object.opacity = this.paper_main_object.opacity * 1.04;
} else{
this.paper_main_object.opacity = 1;
if(!this.mapitem.clone){
if (this.paper_main_object.opacity < 9) {
this.paper_main_object.opacity = this.paper_main_object.opacity * 1.04;
} else{
this.paper_main_object.opacity = 1;
}
}
this.handlePaperVisibilityOnAfterEnginUpdate()