Sat.Mar 23, 2024

article thumbnail

skeletalAnimation.crossFade() not working? (Creator 3.8.2)

Cocos

I’m just leaning skeletalAnimation and just tried skeletalAnimation.crossFade() to make my character smoothly switch from an animation to another But as the attached video, it didn’t change animations smoothly So can anyone please tell me what else I need to do to use “crossFade()” correctly? Thanks!

article thumbnail

skeletalAnimation.crossFade() not working? (Creator 3.8.2)

Cocos

I’m just leaning skeletalAnimation and just tried skeletalAnimation.crossFade() to make my character smoothly switch from an animation to another But as the attached video, it didn’t change animations smoothly So can anyone please tell me what else I need to do to use “crossFade()” correctly? Thanks!

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

Get number of files in folder - Creator 3

Cocos

docs.cocos.com Cocos Creator API Description You can simply use fileUtils.listFiles(folder).length to get number of files in a folder. But the answer maybe not you want, you will get a string[] of file names when use listFIles(), write your own rule to count fileNum. let folder = "xxx"; let files = f.listFiles(folder); let fileNum = files.

Writing 40
article thumbnail

skeletalAnimation.crossFade() not working? (Creator 3.8.2)

Cocos

I’m just leaning skeletalAnimation and just tried skeletalAnimation.crossFade() to make my character smoothly switch from an animation to another But as the attached video, it didn’t change animations smoothly So can anyone please tell me what else I need to do to use “crossFade()” correctly? Thanks! /uploads/default/original/3X/d/d/ddb46a8fd01d805ca509f81b08cc43ab3855469c.

Join the IGDA Community
article thumbnail

Get number of files in folder - Creator 3

Cocos

My game allows custom level creation with a menu to access the locally-saved user-created levels. These levels are saved using Native.FileUtils. Is there some way to get how many files are in any folder foo ?