Make animation using script

i want to make a animation clip using typescript because i have dynamic position to use and i cant use tween as it will cause problem in game pause and resume?
any help from community will be appreciated , thanks in advance.

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

I need dynamic position to set in animation but through editor it cant possible as it takes static value so how can i manipulate animation clip through typescript

i am also facing same problem , can you give any demo on how to create animation clip using typescript

I am also looking for the same.
@linrm Lets suppose we want to change position via Animation component but not by static but by delta with respect to current position, then how to achieve that?
For ref,

tween(this.node).to(time, { position: new Vec3(...)})  // this is currently behaves in Animation component

But i want
tween(this.node).by(time, { position: new Vec3(...)})  // `by` behaviour in Animation clip
1 Like

using typescript to make animation can refer to this (The current version is in Chinese, the follow-up will be in English) : 程序化编辑动画剪辑 · Cocos Creator
here is a demo:
57352demo.zip (6.0 KB)

2 Likes

Thanks for reply and answer, its really helpful