Hello
I’m using the original sprites from the webpage phaser tutorial.
I’m setting the display height and width using the following code:
var player = this.physics.add.sprite(400, 120, 'dude');
player.setDisplaySize(80, 80)
player.setSize(80, 80)
but the result is:
im setting the same display width and heigth in the methods setDisplaySize(w,h)
and setSize(w,h)
(one to the rendering size, and the other to collition box), but, why the both sizes are different? and whath should I do to increment or reduce the collition box depending on the sprite display size?
Thanks.