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,

article thumbnail

Load local device files (Audio)

Cocos

stopRecording = () => { console.log("clikced"); let clip = this.node.getComponent(AudioSource).clip; stopRecording = () => { console.log("clikced"); let clip = this.node.getComponent(AudioSource).clip; stopRecording = () => { console.log("clikced"); let clip = this.node.getComponent(AudioSource).clip;

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

Making shaders more accessible

Mircosoft Game Dev

To explain the idea of how shaders work, let's consider a very simple shader for drawing a sprite to the screen. Our sprite is 32x32 pixels in size, and it must be drawn at some position. The following OpenGL code sends the sprite to the shader for drawing: OpenGL Commands. As you can see: Vertices / UVs are sent via attributes.

Shaders 52
article thumbnail

Godot's 2D engine gets several improvements for upcoming 4.0

Mircosoft Game Dev

Additionally, all 2D shadows and light textures use a single atlas, resulting in improved performance. the new CanvasTexture texture type has been introduced. x is that, several times, sprites are separated in many nodes in order to be animated or assembled. 2D Masking / Clipping. Improved 2D materials. For Godot 4.0,

Engine 55
article thumbnail

Pokémon Scarlet and Violet launch is the second-biggest in franchise history

Game Daily

“Throughout the game, there were issues with assets clipping into each other, models popping in and out, and huge frame rate drops,” Stanley said. “Throughout the game, there were issues with assets clipping into each other, models popping in and out, and huge frame rate drops,” Stanley said.