make wheel?

RUPASRUPAS Member Posts: 823
edited March 2012 in Working with GS (Mac)
Anyone know how I can program the motion of a wheel? need to know how I can do to make the seats rotate in orbit

regards

Comments

  • CloudsClouds Member Posts: 1,599
    Just use the 'rotate' behaviour ?
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    @RUPAS

    For orbiting things . . .

    Constrain the actor's X position to . . . AAA*cos(self.time*BBB)+CCC
    Constrain the actor's Y position to . . . AAA*sin(self.time*BBB)+CCC

    AAA = the radius of the orbit.
    BBB = how fast it moves.
    CCC = the centre of the orbit.
  • RUPASRUPAS Member Posts: 823
    yeah right ... but my game is platform, then I have 2 actors one is the wheel and the other are the platforms of the wheel, so that the hero will rise above the platforms, you must have different rules, if you have the wheel rotation behavior , but the platform has to rotate with the tour, my question is how to make the platform rotate with the wheel.
  • CloudsClouds Member Posts: 1,599
    yeah right ...
    Best of luck with your game. ;)
  • RUPASRUPAS Member Posts: 823
    as I can calculate the center of the orbit and the radius of the orbit?
  • RUPASRUPAS Member Posts: 823
    thank you very much for the help Tynan, but do not get it to work
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    thank you very much for the help Tynan, but do not get it to work
    Can you take a screen shot of the code that doesn't work.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Do you mean something like a Ferris Wheel? Here is an example:
    http://www.mediafire.com/download.php?5rwr535awn9qxps

    RThurman
  • RUPASRUPAS Member Posts: 823
    @RThurman yes!! is correct thank so much
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    You are welcome! Glad it works for you.

    RThurman
Sign In or Register to comment.