linking actors to one another

shockcollarinteractiveshockcollarinteractive Member Posts: 7
edited December 2011 in Working with GS (Mac)
Hello all, hoping someone can help me resolve the issue of linking actors so that they move as one. I have two actors, a car and its wheels, respectively. The wheels spin c/cw and I want them to link to the car (which does not move as of yet) so that the whole thing moves as one unit. Any suggestions? Thank you in advance.

Comments

  • hotMagichotMagic Member, PRO Posts: 266
    As of now, you're gonna have to do what I call the hackery daquiri.
    You need to make variables for CarX and CarY in the game. Tell Car to Constrain its position X to CarX, and Y to Car Y.

    Inside of the Wheels, say for example:
    You tell the wheel, constrain X to CarX-50, constrain Y to Car Y-10 (those offsets are guesses, but you need some sort of offset)

    That part is easy.
    Now here's the BIG step two. If you are planning on tilting the car, you'll need to do some trig to make sure that the wheels change their position based on the rotation of the car.

    Or you could wait for joints and such in some gamesalad update as planned on the roadmap. Good luck!
  • CloudsClouds Member Posts: 1,599
    Cheers hotMagic - I was following shockcollarinteractive post - waiting to hear the answer (it's something I need to do myself) . . .

    The general positional attribute (with X and Y offsets for the wheels) makes sense, but the rotation part sounds scary ! : )

    Until we have joints or even just the ability to 'group' actors - then I would suggest (in lieu of degree level math/s) that the easiest easiest way would be to make the car (with turning wheels) an animation in itself - you only need two or three frames for convincing wheel rotation.
  • Thank you hotMagic! Thankfully, my car will only be moving back and forth on the x axis so I won't have to bust out my sextant and take a blood sample, not yet anyway. I'll give your instruction a go and see what happens. Peace!
  • @Tynan, I was fearing that I would have to do that and forsake the gameplay a bit, but with hM's advice I can hopefully move ahead. Cheers!
  • CloudsClouds Member Posts: 1,599
    Using his way . . . . . the wheels can come off in a crash !

    : )
  • Rob2Rob2 Member Posts: 2,402
    State of the GS Art :-0

  • CloudsClouds Member Posts: 1,599
    Excellent stuff, where you involved in that Rob ?

    Was it done in Gamesalad ?
  • Rob2Rob2 Member Posts: 2,402
    (ooh no... not me :( )

    All done by the insanely talented Thomas Wagner using GameSalad .... he pops up every now and then!! - blowing everyone away with his latest creation :) http://www.gamesmold.com/
  • CloudsClouds Member Posts: 1,599
    Cheers Rob, inspiring stuff . . . .

    : )
  • Very nice indeed! Someday, perhaps...:)
Sign In or Register to comment.