1 Replies - 1059 Views - Last Post: 17 November 2010 - 02:19 PM

#1 Brickhoney  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-November 10

AS Rotating different objects in different directions

Posted 17 November 2010 - 11:55 AM

I am looking to rotate two different objects, in different directions (CW and CCW), at different variable speeds, using Action Scripting. I can get both objects to rotate, but when I change the script on one, both objects move in the same direction. Example: two gears moving together which are different sizes. Any scripting suggestions would be great help.

[Frame 1]
[i]count=0[/i]

[Frame 3}
[clockwise loop]
[i]count = +10;
if (count>=370) {
    gotoAndPlay(4);
} else {
    _root.oval._rotation = count;
    gotoAndPlay(2);
}[/i]
[Frame 5]
[counter clockwise loop]
[i]count = -10;
if (count<=-10) {
    gotoAndPlay(2);
} else {
    _root.oval._rotation = count;
    gotoAndPlay(4);
}[/i]




This was the script I used for one object. I then copied the script and placed it for another object (changed the object label and changed my variables).

Is This A Good Question/Topic? 0
  • +

Replies To: AS Rotating different objects in different directions

#2 booleanops  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 24
  • Joined: 18-June 09

Re: AS Rotating different objects in different directions

Posted 17 November 2010 - 02:19 PM

removed post because I failed to read properly.

This post has been edited by booleanops: 17 November 2010 - 02:23 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1