article thumbnail

Using Auto Atlas to Create Sprite Sheets

Cocos

[link] Learn how to use the “Auto Atlas” feature to create sprite sheets in this new tutorial! You’ll also learn how to publish sprite sheets from texture packer and import it in your project! This will increase your game’s performance if you have a ton of images to load in your game.

Sprite 52
article thumbnail

[Tutorial]Outer Stroke Effect for 2D Sprites

Cocos

Original: [link] Author: BitByBit Outer Stroke Effect for 2D Sprites Continuing from the previous article Inner Stroke Effect for 2D Sprites Introduction In the last article, we introduced the method of inner stroke and also discussed its pros and cons. _OutlineSize is the stroke width.

Sprite 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Does the shader have a built-in function to get the texture size?

Cocos

? ? Does the shader have a built-in function to get the texture size? I’m trying to draw a circle on a texture, the texture is in sprite. I tried it in different ways, sometimes it turns out to be a stretched circle, sometimes it’s not visible at all, sometimes only part of the circle is visible.

Texture 40
article thumbnail

Texture flushed when coming back from background

Cocos

Are you using a texture map or are they all individual images that’s moving in and out of cache could it be phone freeing up memory space while in background? I have not had this but I use Texture map one big image. ohh edit is it you need to say sprite->retain(); to keep it then you have to sprite->release();

Texture 52
article thumbnail

Does the shader have a built-in function to get the texture size?

Cocos

Does the shader have a built-in function to get the texture size? I’m trying to draw a circle on a texture, the texture is in sprite. I tried it in different ways, sometimes it turns out to be a stretched circle, sometimes it’s not visible at all, sometimes only part of the circle is visible. float v = length(uv); v -= 0.5;

Texture 40
article thumbnail

Cocos Creator 3.7 does not update imported sprite sheets

Cocos

does not update sprite sheets when they are updated. Only the texture changes but the sprite frames are not. This breaks the sprites in the scene, inspector and assets view. Expected behaviour: When entering Cocos Creator, sprite sheets are re-loaded and updated. Sprite properties are updated in the Inspector.

Sprite 52
article thumbnail

Feature request: Texture atlas polygon support in CC v3

Cocos

We use Texture Packer v7 and it supports Polygon atlases. Useful links: codeandweb.com Cocos2d-x performance optimization with polygon sprites Are you experiencing low FPS in your cocos2d-x game? Optimize your sprite sheets to get the best performance for the players! 版本号) 2.1.3 ### Affected platform?(受影响的平台)

Polygon 52