Thanks for your help Bruce.

Brad Carroll sent me the formula.
the pendulum is swinging now:

on animateMe
  angle = angleStart * sin(2*pi*f*t)
  x = cordLength * sin(angle) + centerH
  y = cordLength * cos(angle) + centerV
  newPoss = point(x, y)
  mySprite.loc = newPoss
end animateMe

f is the frequency
t is the elapsed time
centerH and centerV is where the pendulum is suspended

ralf.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to