ReydVires

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Sorry if necro post, but I want to share for this solution that need little effort to code. function update () { // Need to capture current state var currentTrigger = zone.body.touching.none; zone.body.debugBodyColor = zone.body.touching.none ? 0x00ffff : 0xffff00; // if there is the difference, then active! Just like that if ((this.lastOnTrigger == true) && (currentTrigger == false)){ window.alert("ACTIVE!"); } // Also need capture the latest state touch status this.lastOnTrigger = zone.body.touching.none; } Reference: Phaser 3 Example Overlap zone