article thumbnail

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

Cocos

My code works, but I’m having problems, even though I updated its size to 48x48 (the images for animation are 96x96). height = 48; let animation = node.addComponent(Animation); let clip = AnimationClip.createWithSpriteFrames(arr, 60); clip.wrapMode = loop ? However, when I start animationClip, its size returns to 96x96.

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

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. It gets worse with animations, too. can cause self-clipping and other graphical weirdness. can cause self-clipping and other graphical weirdness.

Mesh 40
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

What is Cel Shading & How to Use It?

Game Designing

You may have seen some 2D or 3D animated movies and video games that look like they were hand-drawn or have a cartoon-like style. Usually, Japanese anime films and video games feature this distinct look. This type or technique of animation is known as cel-shading animation. Some also refer to it as toon shading.

article thumbnail

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

iXie gaming

Usually, they occur due to issues within the code or faulty animation controls. 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.

Texture 52
article thumbnail

The Kristala Dev Blog - Issue #19

Astral Clock Tower Studios

[link] Next, Will worked on modifying the death systems for our main character (and some of the game's enemies) to allow them to utilize the new death animations Producer Allie recently created (make sure you check out the Game Production section to see them in action). Can you spot it? Let us know in the comments! Level Design.

Dev 52