开发者

how to make an object snap to another ojbect then follow its path with pure actionscript

I am开发者_运维问答 currently trying to create an app using flash AIR.

I would like to find some more information on how to make an object snap to another ojbect then follow its path, eg. a person object is already on the stage, then drag an arrow to the object which snaps to it, then on play button it follows the arrow path. all in pure actionscript, no guide layers.

Any help is really appreciated. Or examples if there are any around.

Regards Mark T


There's a difference in their positions, so make the follower object change its X property to ((frames_to_go-frames_passed)*starting_x_difference)+target_x between the objects. Same goes for the Y property.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜