  | |  | movement and scaling with ease-in effect | movement and scaling with ease-in effect 2004-03-10 - By Zeh Fernando
Back >Hello, I am looking for an example of code which will move a mc from point A to point B giving the effect of driving down the road. I wrote some code and it is working, but I can't seem to get the easing effect I am looking for. I would like the object to scale and also have a ease-in effect such as real scenery does. I searched high & low and haven't come across anything other than Roberts Cubic easing equation but haven't been able to figure out how to use it or make it do what I want.
Use dynamic tweening prototypes. There are several of them out there and I believe all of them is based on Robert Penner's equations. It's just paste (or #include) and use on your movieclips without too much hassle.
There's mine, http://proto.layer51.com/d.aspx?f=804
Laco's, http://proto.layer51.com/d.aspx?f=1142
Tatsuo Kato's, http://tatsuokato.com/flash/dynTweenMX.html
And there's this benchmark by laco with a few more links http://laco.wz.cz/mc_tween/
There are many others around, including Penner's own tweening classes.. somewhere on ultrashock.com. Searching the list archives may help too.
- zeh
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106517 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |