Hi, i want to apply a sprite as a tiled background and apply to it an animation like a movement. I don’t want to make a script that calculate position and if at certain value must to set the start position.
I want to give this effect changing the “offset” of the texture/sprite of it. This Node has a sprite set as Tiled
![BackgroundPatternTile](https://discuss.cocos2d-x.org/uploads/default/original/3X/1/2/12024a64213a02e586d3cdf207927ad1b60299e7.png)
1 Like
If I understand correctly, what you want is to do an offset of the content of the image, which you can achieve using a shader.
How can I animate the offset with a shader? I have no experience with that
could you tell me some example?
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