Fix various sprites sometimes sticking
This commit is contained in:
parent
c84754ca0c
commit
5576cc21a9
3 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ Door = function(level, x, y, z, index, color) {
|
|||
door.editorremove = function() {
|
||||
level.map.doors.splice(level.map.doors.indexOf(info), 1);
|
||||
door.position.x = -99999;
|
||||
door.activeSprite.visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ Key = function(level, x, y, z, index, color) {
|
|||
key.editorremove = function() {
|
||||
level.map.keys.splice(level.map.keys.indexOf(info), 1);
|
||||
key.position.x = -99999;
|
||||
key.activeSprite.visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -537,6 +537,7 @@ Level = function(levelName) {
|
|||
obj.position.x = -99999;
|
||||
obj.position.y = -99999;
|
||||
obj.position.z = -99999;
|
||||
obj.activeSprite.visible = false;
|
||||
});
|
||||
attractCollectiblesToDolphin(minX, minY, minZ, dist*dist);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue