Hi,
Let suppose I have created the sprite object.
Now I want to increase the only height of sprite object?
So how can I do this.
A fast, easy to use, free, and community supported 2D game engine
Hi,
Let suppose I have created the sprite object.
Now I want to increase the only height of sprite object?
So how can I do this.
[enemySprite setTextureRect:CGRectMake(200, 200, 40, 40)];
where enemySprite is an instance of AtlasSprite.
it's not working.
How to set new rect to AtlasSprite instance.?
you can scale x and y independently:
//make sprite twice as tall as it is wide
mySprite.scaleX=1.0;
mySprite.scaleY=2.0;
is that what you mean? hth, Codemattic
Thanks a lot.
Yes , It's working.
You must log in to post.