PDA

View Full Version : Problem Rotating


GetPhat
09-18-2003, 12:35 AM
ok, i am making this image where it has a hexagon rotating one way, and i want a little stick guy rotating the other way... i put em on different frames and in the transorm box i put in -180 but it doesnt make it go backwards :(

Any help Appreciated
Get Phat

Warrior
09-18-2003, 01:01 AM
Can you upload the Flash file in here. Flash 5 prefered.

dzy2566
09-18-2003, 11:00 AM
If you have two movie clips, "hexagon" and "guy"...... You can do one of the following to make them rotate:

1) Attach the following code to each clip:
//on hexagon (rotating clockwise)
onClipEvent(enterFrame){
_rotation += 5; // 5 is how many degrees it will turn each frame
}

// on guy (rotation clockwise)
onClipEvent(enterFrame){
_rotation -= 5; // 5 is how many degrees it will turn each frame
}

2) Write the following code on your main timeline:
hexagon.onEnterFrame = function(){
this._rotation += 5;
}
guy.onEnterFrame = function(){
this._rotation -= 5;
}