Home Game Development Make animation utilizing script – Cocos Creator

Make animation utilizing script – Cocos Creator

0
Make animation utilizing script – Cocos Creator

[ad_1]

i wish 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’s going to trigger drawback in sport pause and resume?
any assist from group will probably be appreciated , thanks upfront.

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

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

i’m additionally going through similar drawback , are you able to give any demo on find out how to create animation clip utilizing typescript

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

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

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

1 Like

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

1 Like

Thanks for reply and reply, its actually useful

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here