article thumbnail

[Ask CC 3.8] AnimationClip change old size when changed Frame

Cocos

Here is 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) => { // change size res(texture); }); }) } let createAnimationArray = async(parent, list: any, speed:number = 0.1,

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

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

Inkscape – Illustration – ‘funny dog chasing the ball’

2d Game Art Guru

I played with all my favorites – clip groups, blurs, gradients, taper strokes, and power strokes. Fur is one of those textures that can easily be overdone. . :) Setting up a new, clean computer is always a big thing and choosing the right tools, installing enough but not too much is fun. a good spin. Less is more!

article thumbnail

Designing a quick T-shirt Mockup in Affinity Designer

2d Game Art Guru

I use simple shapes to create a clipping mask, lines with added tapering and Gaussian blur for the folds, and adjusted layer blend modes. Additional textures on top can make it look more like fabric. There are a lot of templates for T-shirts out there but most were created for Photoshop and use photos and bitmap elements.

article thumbnail

10 Worst Video Game Glitches to Test Before Launching Your Next Game

iXie gaming

Character Clipping and Collision Glitches A video game entails characters interacting with each other. Texture and Model Glitches Errors in the texture and model of your game can significantly detract from the visual appeal of the game. Thorough texture and model testing is crucial to identify and rectify such issues.

Texture 52
article thumbnail

Ask a Game Dev - Untitled Article

Ask a Game Dev

Remember, these changes only affect the mesh, but won’t affect things like textures for that mesh, which can result in UV stretching or other weirdness. can cause self-clipping and other graphical weirdness.

Mesh 40