Hello,
cc.gif (400×154) (bp.blogspot.com)
I want to make a simple “yoyo” animation using a tween: increase the size of the image and reduce it. If I do something like that:
var circle = gameScene.add.image(0,0,"image_circle");
circle.setScale(1.5,1.5);
var body = gameScene.matter.add.circle(0, 0,50);
this.matter.add.gameObject(circle, body);
Image “circle” will change the size, but when I add for example to: circle.setScale(1,1), it also changes the size of the body/collision.
I want the image circle collision the same but the texture circle with different size, how to do? Do I need to update collision when the image resizes?