article thumbnail

3.8.3 2D spriteFrame animation bug: switching between animation clips no display sometimes

Cocos

I have several 2D animation clips changing spriteFrame, but switching between these clips can sometimes cause the image totally disappears. Logs show that the animation is playing, spriteFrame is changing, node and Sprite component is active, but there is just no image at all. Anyone knows what’s going on?

article thumbnail

3.8.3 2D spriteFrame animation bug: switching between animation clips no display sometimes

Cocos

I have several 2D animation clips changing spriteFrame , but switching between these clips can sometimes cause the image totally disappears. Logs show that the animation is playing, spriteFrame is changing, node and Sprite component is active, but there is just no image at all. Anyone knows what’s going on?

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Dev snapshot: Godot 4.4 beta 3

Mircosoft Game Dev

Animation: Fix incomplete FPS spinbox display in sprite frames editor ( GH-101798 ). Rendering: 2D: Fix clip children and rendering artefacts ( GH-102161 ). With some further fixes like GH-102424 , GH-102497 , and GH-102477 , lightmap baking got a nice upgrade in this snapshot. Porting: Implement get_length() for pipes ( GH-102365 ).

Beta 76
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

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;

article thumbnail

[CC 3.8.1] AnimationClip.createWithSpriteFrames not working

Cocos

I am using CC version 3.8.1 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

Noob question about scripting animation

Cocos

Currently, my client engineer has 5 cards being dealt and each card sprite pulls from a random card image on an atlas. I would like to put the image of the card’s back as the default sprite frame. I know I can change the sprite frame image in the timeline, but it needs to pull from an array. I’ve already accomplished that.