slick Posted August 11, 2017 Share Posted August 11, 2017 // A drop zone var zone = this.add.zone(500, 300, 300, 300).setDropZone(); // Just a visual display of the drop zone var graphics = this.add.graphics(); graphics.lineStyle(2, 0xffff00); graphics.strokeRect(zone.x + zone.input.hitArea.x, zone.y + zone.input.hitArea.y, zone.input.hitArea.width, zone.input.hitArea.height); Why not graphics.strokeRect(zone.x , zone.y , zone.width, zone.height); Link to comment Share on other sites More sharing options...
rich Posted August 18, 2017 Share Posted August 18, 2017 Because originally in the example the hit area wasn't the same size as the zone. Link to comment Share on other sites More sharing options...
Recommended Posts