that there is my bucket sprite as you can see the hitbox completely encompasses it. Instead, I want to change the hitbox to the size of the red outline shown in the image.
Here is my code:
function preload() {
this.load.image('player', 'assets/basket.png')
}
function create() {
this.player = {x: 640/2, y: (360/10) * 9};
this.player.sprite = this.physics.add.sprite(this.player.x, this.player.y, 'player');
this.player.sprite.setScale(4);
}