how about making a big bitmap with a 1 pixel dot at the fixed point, and
the pendulum bob at the bottom on the radius. if the bob is radially
symmetrical, you should be able to rotate that whole thing about the
fixed point, and it will act like a pendulum. of course you'll have to
manage the speed of rotation to have it slow down and speed up when it
gets to the tops and the bottom of the arc...
just a thought...
-bh
LePhuronn wrote:
>
> The actual script to recreate a pendulum action can be a touch complex - I
> haven't got the time to give you any pointers at present.
>
> However in order to actually rotate a sprite you use the sprite rotation
> property. To do this with a line you would set the associated member's
> regPoint to the edge. Use this script on the line sprite:
>
> on beginSprite me
> thisSprite = sprite(me.spriteNum)
>
> thisSprite.member.regPoint = point(0, thisSprite.height / 2)
> end
>
> "Explanation*
> When the sprite is first loaded into memory, the associated member's
> registration point (i.e. the point used in sprite positioning) is set to the
> leftmost edge and in the centre of the height (if you are using a full
> graphic)
>
> If you are using a 1-pixel line, however, then just set the regPoint to
> point(0, 0).
>
> [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!]
--
R. Bhakti Klein
Multimedia Programmer, Distributed Learning Workshop
http://www.dlworkshop.net/
··
Baritone, Wicki6
http://www.wicki6.com
···
"On Earth, you can only do little things;
but you can do them with a lot of Love."
-- Mother Theresa
[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!]