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!]

Reply via email to