Resizing images

Is it possible to make an image smaller with code? I’ve tried using “dog.xSize/dog.ySize” but it will only size the canvas down not the image. I also tried using “dog.xScale/dog.yScale” which does the trick but the image is still in it’s original size when it comes to collision, etc. How can I fully resize an image with code?

For example in GameSalad you drag the actor to the screen, click it, then you can size it any way you want. That kind of sizing.

Thanks in advance, [import]uid: 14018 topic_id: 5102 reply_id: 305102[/import]

read through this
http://developer.anscamobile.com/forum/2010/08/02/scaling-physics-bodies-attached-sprites

j [import]uid: 6645 topic_id: 5102 reply_id: 16816[/import]

From what I understood in that thread, it’s not possible? Does this mean that after you’ve assigned an object a physical body you can’t change the size of that body? But how come it’s possible in GameSalad that also uses Box2D?

Nevermind, solved it :slight_smile: Assigned a variable to the radius of the physical body and by changing that variable I can control it’s size. Thanks [import]uid: 14018 topic_id: 5102 reply_id: 16841[/import]