Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lever anticlockwise rotation

Status
Not open for further replies.

malcprice

Technical User
Feb 27, 2002
20
GB
I need to rotate / move a lever to four points with the lever totating.

The start point is at 3 o'clock I then want to rotate it to 4'oclock and then from 4 to 2 o clock and then back to 3 0clock.

Is this possible? I have got this to work firstly with _rotation from rotating from 3 to 4 o'clock.... but need help with the rest.

please help

Malc
 
Did you try using a negative number with your _rotation script?

Of course you could always do this with keyframes and tweening as well.
 
Ok which is the best way to achieve this? by keyframes? also tried the negative number with _rotation at it works but how do I get the lever to move up and down to the points I stated above;

script used

_root.onEnterFrame = function() {
verticallever._rotation += 3.5;
};

If this is not appropriate then what should I use
 
Maybe you should stick with keyframes.

Make a three frame movie (or movie clip). Using the drawing tools place the arm where you need it. Each keyframe should be a seperate position.

Testing the movie when you are done should give you the motion you are looking for in a loop. Add frames between the keyframes to add time between changes.

This should work for you if you are wanting to move the hands without user interaction.

If you want to use the script method that's ok too, just tweek the percentage on each keyframe until you have the 2,3,and 4 o'clock positions.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
I am trying to get the browser to move the levers which in turn moves a constant laser beam.

The two levers control the beams position if you move the top beam it moves left to right, and the side beam controls the horizontal movement. I only want the beam and the levers to be moved to the following.

Horizontal lever between positions 10 and 2 o'clock (the levers rotate at a central point)

Vertical lever - between 2 and 4 o'clock

The laser beam to be moved anywhere in the red circle but once the lever is not being moved then the beam also stops moving.

I appreciate this is a big ask and would be grateful for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top