-1
\$\begingroup\$

I want to change the scale of sprite like a paper in 'Paper Toss' game.

'Paper Toss' is the game is available on the App store. I want to make a sprite like a paper and change the scale of sprite like a paper in 'paper Toss'.

\$\endgroup\$
4
\$\begingroup\$

You can change the size of a sprite like so:

[mySprite setScaleX: newWidth/mySprite.contentSize.width];
[mySprite setScaleY: newHeight/mySprite.contentSize.height];
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.