[Flashcoders] Tween
I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
You could use a bezier tween. Google that and you should find what you need. -Gerry On 11/7/11 12:25 PM, Paul Andrews p...@ipauland.com wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
tweenMax tweenLight On Nov 7, 2011, at 11:25 AM, Paul Andrews wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
http://www.greensock.com/as/docs/tween/com/greensock/TweenMax.html On Mon, Nov 7, 2011 at 12:25 PM, Paul Andrews p...@ipauland.com wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
check out TweenMax and the bezierThrough property. if you are moving horizontally and tweening just the x though, on enterframe you can go cycle through 360° set your y based on the sine of that and an amplitude. that will do what you want too. On 7 November 2011 18:25, Paul Andrews p...@ipauland.com wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
TweenLite with Bezier curve is what I would use. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
minutes.. sry On Nov 7, 2011, at 11:39 AM, tom rhodes wrote: check out TweenMax and the bezierThrough property. if you are moving horizontally and tweening just the x though, on enterframe you can go cycle through 360° set your y based on the sine of that and an amplitude. that will do what you want too. On 7 November 2011 18:25, Paul Andrews p...@ipauland.com wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
Thats funny. Your post was up for at least 10min and we all answered within seconds of eachother. lol Karl On Nov 7, 2011, at 11:39 AM, tom rhodes wrote: check out TweenMax and the bezierThrough property. if you are moving horizontally and tweening just the x though, on enterframe you can go cycle through 360° set your y based on the sine of that and an amplitude. that will do what you want too. On 7 November 2011 18:25, Paul Andrews p...@ipauland.com wrote: I'm just thinking about the best way to do this (OK, the laziest way to do this). I have a MC at point A and want to tween it to point B. OK, no problem. But really, I don't want my MC to move in a straight line, I want it to oscillate - I guess as a damped (attenuated at both ends) sine curve along the path between A and B. Before I start hurting my brain, any ready made solutions out there? Paul __**_ Flashcoders mailing list Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Tween
Does that mean we are all bored, or NOT on FaceBook right now? :) On Nov 7, 2011, at 11:49 AM, Karl DeSaulniers wrote: Thats funny. Your post was up for at least 10min and we all answered within seconds of eachother. lol John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders