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

[CC 3.8.1] AnimationClip.createWithSpriteFrames not working

Cocos

this is images of my code: let getImg = async (name : string, path : string = 'int04') => { return new Promise((res,fai) => { cc.resources.load(path+"/"+name+"/spriteFrame", cc.spriteFrame ,(err, texture) => { res(texture); }); }) } let createAnimationArray = async(parent, list: any, speed:number = 0.1,

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

Sprite Outline Shader in Unity

Febucci

In this “Unity Sprite Outline” tutorial we’ll discover how to create both a “Sprite Innerline” and a “Outer Sprite Outline”. Simply, the Inner Sprite Outline shader is drawn “inside” the sprite, while “Outer” is the opposite. Read more about “Texture’s Texel Size” here. Inner Sprite Outline HLSL.

Sprite 52
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

Does Spine work with USE_INSTANCING?

Cocos

Hello, I’m working on a custom material/effect with a USE_INSTANCING branch that works on sprites, but does not work on a spine character. I’ve tried the different animation cache modes, and enable/disable batch. The effect is a duplicate of builtin-spine , with the instancing branches added and the two_color branch removed.

Texture 40
article thumbnail

How to get started with Unity Game Development – Tips & Tricks from iXie Experts

iXie gaming

Use asset stores wisely Unity Asset Store offers a wide range of free and paid assets, such as 3D models, textures, sound effects, and plugins. Shader programming allows you to manipulate lighting, textures, and visual effects, resulting in unique and optimized visuals. Be mindful of memory usage, especially on mobile platforms.

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.