Tuesday, October 11, 2022
HomeGame DevelopmentMake animation utilizing script - Cocos Creator

Make animation utilizing script – Cocos Creator


i need to make a animation clip utilizing typescript as a result of i’ve dynamic place to make use of and that i cant use tween as it would trigger downside in recreation pause and resume?
any assist from neighborhood shall be appreciated , thanks upfront.


You need to use typescript to do it. Did you encounter any issues?

I would like dynamic place to set in animation however by editor it cant doable because it takes static worth so how am i able to manipulate animation clip by typescript

i’m additionally dealing with identical downside , are you able to give any demo on learn how to create animation clip utilizing typescript

I’m additionally on the lookout for the identical.
@linrm Lets suppose we need to change place through Animation element however not by static however by delta with respect to present place, then learn how to obtain that?
For ref,

tween(this.node).to(time, { place: new Vec3(...)})  // that is at the moment behaves in Animation element

However i would like
tween(this.node).by(time, { place: new Vec3(...)})  // `by` behaviour in Animation clip



1 Like

utilizing typescript to make animation can confer with this (The present model is in Chinese language, the follow-up shall be in English) : 程序化编辑动画剪辑 · Cocos Creator
here’s a demo:
57352demo.zip (6.0 KB)



1 Like

Thanks for reply and reply, its actually useful

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments