Mouse Follower:
At fast open flash CS3 > Open a new window > Create a Movie Clip as per your choice. Select the MC > Instance name = follower. Select the 1st frame > Press F9
_rotation_speed=5
elasticity=.1;
_root.onEnterFrame= function( )
{
width(follower)
{
_rotation (Press space bar)+=rotation_speed;
_x+=(_root._xmouse-_x)*elasticity;
_y+=(_root._xmouse-_y)*elasticity;
}
};
Then Press CTRL+Enter, and enjoy your own animation.
Thank You.
At fast open flash CS3 > Open a new window > Create a Movie Clip as per your choice. Select the MC > Instance name = follower. Select the 1st frame > Press F9
_rotation_speed=5
elasticity=.1;
_root.onEnterFrame= function( )
{
width(follower)
{
_rotation (Press space bar)+=rotation_speed;
_x+=(_root._xmouse-_x)*elasticity;
_y+=(_root._xmouse-_y)*elasticity;
}
};
Then Press CTRL+Enter, and enjoy your own animation.
Thank You.
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন