cocos2d iphone - SpriteBuilder blurs imported images -
I am learning some animation using spritebuilder, but it is blurred (or antialysing, i do not know) images i ' I'm importing and using
On the left you can see the phantom producer image, png in the image viewer on the right.
to prevent this Any thoughts about?
I've changed _sprite.texture. Not antialiased but the result is the same left texture. Random = No, the correct texture. Random = Yes (default)
I used the code:
@implementation MainScene {CCSprite * _sprite1; CCSprite * _sprite2; } - (zero) didLoadFromCCB {_karel1.texture.antialiased = No; // NSLog (@ "hi"); Self.userInteractionEnabled = Yes; } You must set filtering mode to filter the nearest (point) filter. This cctacture properties in Cocos2d are named incorrectly (or at least unusually). This is the default for Yes, so set it to enable close / point filtering for texture. For example:
the PlayerSprite.texture.antialiased = NO; It can not be done in SpriteBuilder, you have to program this program. Because it is a necessity for pixel art.
SpriteBilder has been explained from the forum.
Comments
Post a Comment