开发者

Object rotation while moving on a path in Flash

开发者 https://www.devze.com 2023-01-17 21:55 出处:网络
I have a movieclip moving on a path by means of a tween. At the starting point a (virtual)开发者_StackOverflow中文版 line on the movieclip is tangent to the path. Is there an easy way to automagically

I have a movieclip moving on a path by means of a tween. At the starting point a (virtual)开发者_StackOverflow中文版 line on the movieclip is tangent to the path. Is there an easy way to automagically rotate the movieclip such that this line remains tangent to the path throughout the tween?

Object rotation while moving on a path in Flash

TIA

Steven


OK, I found it.

For those interested:
Click somewhere on the tween on the timeline. In the properties check "Orient to path". Important: make sure that the object has the same orientation with respect to the path on the first and the last frame of the tween.

0

精彩评论

暂无评论...
验证码 换一张
取 消