Rotate more than one same spot?

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
I know TSB has a tut on orbit around point.
But how do you make 4 or more (but lets just say 4) objects rotate around the same spot?

example,

Image and video hosting by TinyPic

Comments

  • VGXVGX Member Posts: 796
    can someone please help. thanks
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    I assume you already have the one actor (from TSB's demo) that is working? If yes then make 3 copies of the prototype and modify actors 2, 3, and 4 as follows.

    #2
    Constrain Attribute: self.Position.X To: 100*cos(90+( self.Time *-200%360))+ game.sunX
    Constrain Attribute: self.Position.Y To: 100*sin(90+( self.Time *-200%360))+ game.sunY

    #3
    Constrain Attribute: self.Position.X To: 100*cos(180+( self.Time *-200%360))+ game.sunX
    Constrain Attribute: self.Position.Y To: 100*sin(180+( self.Time *-200%360))+ game.sunY

    #4
    Constrain Attribute: self.Position.X To: 100*cos(270+( self.Time *-200%360))+ game.sunX
    Constrain Attribute: self.Position.Y To: 100*sin(270+( self.Time *-200%360))+ game.sunY

    As you can see, all you need to do is put is change the offset angle you want the the actors to be advanced to.
  • jb15jb15 Member Posts: 602
    RThurman said:
    As you can see, all you need to do is put is change the offset angle you want the the actors to be advanced to.

    Just in case you don't get the numbers; 360 / 4 (the number of actors rotating around) = 90, so have 90, 180, 270, 360.
Sign In or Register to comment.