开发者

Fluid MovieClip with mouse pan at AS3

开发者 https://www.devze.com 2023-04-09 17:04 出处:网络
In fact, all I want to have is getting this pan effect and to be able to add buttons inside fluidly resizing main Mo开发者_如何学PythonvieClip.

In fact, all I want to have is getting this pan effect and to be able to add buttons inside fluidly resizing main Mo开发者_如何学PythonvieClip.

See this example: www.avmevsimifilm.com

Do you have a good idea to make something working like this?

Thanks


Parallax scrolling for the parallax effect

and the "fluid" pan effect is probably just:

smoothCoeficitent = 0.2;
x = x + (targetX-x)*smoothCoeficient;

where targetX would be some future position based on mouseX (say targetX = mouseX; or similar);

0

精彩评论

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