Hi, I have some quastions about sprites:
- How cocos2dx works with sizing? I have texture 512x64 and I want to make a sprite from a part of it so I do next:
CCSprite *sprBtns = CCSprite::create(“gump/m_btns.png”);
sprBtns~~>setTextureRect);
But, I get rect smaller than it must be. How to transform pixel sizes to what cocos2dx whants?
- Why all sprites are large than they are? Is it nessesary to get there real size always set do
sprBtns~~>setScale(0.5);
- If I create many sprites from different parts of same textures, will engine load it to memmory for each sprite or only once?