Fix object's sprites all being visible by default
This commit is contained in:
parent
044cd06b10
commit
1ba18941de
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ Entity = function(level, x, y, z) {
|
|||
anims[name] = sprite;
|
||||
level.addSprite(sprite);
|
||||
sprite.ZINDEX = 0;
|
||||
sprite.visible = false;
|
||||
}
|
||||
|
||||
entity.currentSprite = function(name) {
|
||||
|
|
Loading…
Add table
Reference in a new issue