Hi
I’m trying to write a script that will move a mc in a figure 8, kinda like the way that water flows from side to side inside a container… flowing in one direction and rising, then hitting the wall and ebbing as it flows back the other way… slowing down over time
To say that I’m not that mathematically inclined is an understatement, but i think it can be done using trigonometry, like sin and cos…??
I found this page on here - http://www.kirupa.com/developer/mx/circular.htm - this is similar to what i want to do, except when the clip passes the center to move away in a figure eight and then back, instead of just going around in a circle. And i think i want the mc to come to rest in the middle over time, so the figure eight is gradually reducing in size.
There’s also a method that looks like it could be adapted to do what i want using elasticity - http://www.kirupa.com/developer/actionscript/spring.htm , bottom example.
Hopefully this is not too confusing… i’ve put up a page on my site with a bit of a visual representation of what i want it to do:
http://www.fracture.co.nz/help
Thanks in adavance for your help!!
Fracture