Actor orbiting around another actor issue question

carlblanchetcarlblanchet Member Posts: 755
edited September 2012 in Working with GS (Mac)
Hey all!

So I followed tshirtbooth's tutorial on how to orbit an actor around another (and yes I have watched it over and over again to make sure I didn't go wrong anywhere), obviously what I'm trying to achieve is this:
http://www.mediafire.com/view/?5x8gd3xm2u64ox3

Although, what I'm getting is this:
http://www.mediafire.com/view/?ulr8k84h8swmdws

Does anyone know how I could have that actor stay the way it is in the first picture and not have it rotate 90 degrees when the constraint is activated?

Thanks in advance!
Carl

Best Answers

  • RThurmanRThurman Posts: 2,881
    edited September 2012 Accepted Answer
    Two quick ways:

    1) Draw your graphic rotated by 90 degrees
    or
    2) Add 90 degrees to your calculation of the 'earth's' rotation. Something like:
    Constrain Attribute: Self.Rotation To:vectorToAngle(game.sunX-self.Position.X, game.sunY-self.Position.Y)+90
  • MarkOnTheIronMarkOnTheIron Posts: 1,447
    Accepted Answer
    Just invert the width and height values of the Windshield actor

Answers

Sign In or Register to comment.