Is it possible to do this with gamesalad?

Trying to get one actor to stick to other rotating actor when colliding, but it seems to be impossible with Gamesalad. Is it?
Here's video that shows what I'm trying to achieve.

Original Video - More videos at TinyPic

Thank you in advance.

Comments

  • Yovanny369Yovanny369 Member Posts: 105
    Yes. you can do that!
  • wurwagwurwag Member Posts: 16
    Ok great! Maybe I should add that if anyone has any insights how to approach this it would be awesome if you can share your knowledge :)

    Thank you.
  • ashtmjashtmj Member, PRO Posts: 405
    1: make 2 Global attributes

    Planet X
    Planet Y

    2:
    Make a Planet actor
    Constrain game.Planet X to self position X
    Constrain game.Planet Y to self position Y

    3:
    make your player actor
    Constrain
    self rotation to vectorToAngle( game.X - self.Position.X , game.Y - self.Position.Y )

    then move or accelerate direction 0 relative to player
  • ashtmjashtmj Member, PRO Posts: 405
    Also,

    one way to make the planet rotate while still keeping it from moving when the player bumps into it (it can't rotate unless moveable is checked)

    in the planet actor add 2 more real attributes

    MY X
    MY Y

    Change attribute MY X to Self position X
    Change attribute MY Y to Self position Y

    Constrain self position X to MY X
    Constrain self position Y to MY Y

    I just did a little test of this, and it works pretty well, and if the player is set to accelerate and even moves with the rotation of the planet once it collides with it.
  • UtopianGamesUtopianGames Member Posts: 5,692
    We have a free template that might help over at DBA.

    http://www.deepblueapps.com/mario-galaxy-template/

    Edit...sorry its 99p not free.

    Darren.
  • wurwagwurwag Member Posts: 16
    Thank you for the tips. I shall test this.
Sign In or Register to comment.