article thumbnail

How to change the offset of a Tiled Sprite

Cocos

Hi, i want to apply a sprite as a tiled background and apply to it an animation like a movement. I want to give this effect changing the “offset” of the texture/sprite of it. This Node has a sprite set as Tiled

Tile 40
article thumbnail

Tiled Background Cocos Creator 3.7

Cocos

If you want to tile an image, you need to use the Tield (Type) mode of the Sprite component. If you want to tile an image on top of a touchable image, then you need to use the BlockInputEvents component to intercept the response events. Touchable SpriteTiled image (BlockInputEvents)

Tile 40
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

How to render sprite as tiled in cocos creator?

Cocos

How to render sprite as tiled in cocos creator in c++?

Tile 40
article thumbnail

Tiled Background Cocos Creator 3.7

Cocos

How Can I tile the Background on a touch of Sprite in coco creator version 3.7?

Tile 40
article thumbnail

2D gaming performance

Cocos

Then I generate nodes (sprites) from this array and add them to the playing field. Then I generate nodes from this array, but use the TILED type for the sprite and generate one sprite in one ground line and stretch the sprite in width. generation option: 1 create an array [ 0[{x,y},{x,y},{x,y}], 1[.].

Sprite 52
article thumbnail

How to change the offset of a Tiled Sprite

Cocos

What you need is an offset of the image that will resemble a glitter effect on the surface of the image. You can refer to this demo to see github.com CocosCreatorShader/demo/2d/Creator3.6.0_2D_FlashLight at v3.6.x x/demo/2d/Creator3.6.0_2D_FlashLight Contribute to yeshao2069/CocosCreatorShader development by creating an account on GitHub.

Tile 40
article thumbnail

Texture flushed when coming back from background

Cocos

Then I use: initWithSpriteFrameName(); to assign them to Sprites. My game is tiled base and looking at the screenshot, I can see the tiles but their textures are pointing to a different texture it seems. Nothing fancy.

Texture 52