Reputation: 91
I have a sprite that have diferent sizes as you can see in the image, is there a Way to close the collide area to que sprite in the exact moment? Or then devide the sprite in 8 and using 2 sprites at the same time?
I am deviding the sprite in 4 do animate it, but devinding in 8 only shows half of the image.
Upvotes: 1
Views: 379
Reputation: 14795
You can make the bounding box smaller
image.setSize(x, y, true);
And here a working example https://phaser.io/examples/v3/view/physics/arcade/smaller-bounding-box
Upvotes: 1