After Take ID, notices time out after 5 seconds.
modified: wgj58.js
this.loadTexture(npc.key);
npc.kill();
this.disguise = npc;
- logic.gameinterface.dropNotice("You are now identified as " + npc.fullname + "!");
+ logic.gameinterface.dropNoticeTimeout(Phaser.Timer.SECOND * 5, "You are now identified as " + npc.fullname + "!");
}
}
this.text_notice.visible = true;
}
+ dropNoticeTimeout(timeout, text) {
+ this.dropNotice(text);
+ game.time.events.add(timeout, this.clearNotice, this);
+ }
+
clearNotice() {
this.back_notice.visible = false;
this.text_notice.visible = false;