Resizing Sprite animation

Hello friends, 

I am developing a game for kids and faced this question today when I was creating the sprite animation.

My question is: Is it possible to resize a sprite animation like we do with images(imageRect)?

My animation is working but I would like to know if there is anyway to change its width and height without having to change its original property, only by code.

Thanks in advance,

Greetings from Brazil

Hi @carlos.rafael,

For resizing sprites, you may experiement with scaling the sprite after you create it:

http://docs.coronalabs.com/api/type/DisplayObject/scale.html

Best regards,

Brent

Brent is right.  You can scale sprites:

mySprite:scale( 2, 2, ) -- Make it twice as big.

Hello @Brent and @roaminggamer

It works really great. That is just what i need.

I am really happy for your help and time spent answering my question.

Thank you a lot,

greetings from Brazil,

Carlos Antunes

Hi @carlos.rafael,

For resizing sprites, you may experiement with scaling the sprite after you create it:

http://docs.coronalabs.com/api/type/DisplayObject/scale.html

Best regards,

Brent

Brent is right.  You can scale sprites:

mySprite:scale( 2, 2, ) -- Make it twice as big.

Hello @Brent and @roaminggamer

It works really great. That is just what i need.

I am really happy for your help and time spent answering my question.

Thank you a lot,

greetings from Brazil,

Carlos Antunes