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

Texture flushed when coming back from background

Cocos

I use texturepacker and I have a few big 1024x1024 textures loaded with: SpriteFrameCache::getInstance()->addSpriteFramesWithFile. Then I use: initWithSpriteFrameName(); to assign them to Sprites. Nothing fancy.

Texture 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

Weird Texture issue

Cocos

I have a 2d tiled game. On my latest game, I have a weird issue with texture and I have no idea why I have this ( I could only reproduce it once but players do find it from time to time). Suddenly, when the player plays, the screen goes all wrong as if all the textures were now corrupted. Ok so here is the deal.

Texture 40
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

The vertical axes of textures and picture pixels is shown above, when sampling textures in shaders, that is from top to bottom, which is top-right corner. If your previous development experience is based on OpenGL, you may find that the texture on your grid is vertically flipped. _pass = this.node.getComponent(Sprite).material.passes[0];

Shaders 98
article thumbnail

D2 log 074 – New level format

Catnip Games

Everything is just one big texture. This gives me freedom in level design and saves work making tiles… tileable. This gives me freedom in level design and saves work making tiles… tileable. Interactive elements will be placed using the in-game editor. So it’s RGBZ.

Terrain 52
article thumbnail

Godot Tactics RPG – 01. Intro & Setup

The Liquid Fire

Resources just feels like it should be things like 3d Models and Textures, but if you want to stick with the original, that’s fine. The first thing to download will be the sprites and textures from the original tutorial. 02_TacticsRPG_Textures.zip Unzip the folder and move Dirt.png into the Textures folder.

article thumbnail

Release candidate: Godot 3.4.1 RC 1

Mircosoft Game Dev

Import: Fix texture atlas generation when source sprite is larger than generated atlas ( GH-55094 ). Tiles: Fix TileSet editor workspace breaking ( GH-55059 ). Tiles: Only add light occlusion for visible TileMaps ( GH-54435 ). Tiles: Fix selecting next/previous subtile in TileSet editor ( GH-55261 ).

Tile 52