Moving Platform - Make actor stay with platform

SmallBytesSmallBytes Member, PRO Posts: 21
edited November -1 in Working with GS (Mac)
Can someone point me to a tutorial or help. I have a moving platform in my game and need the main actor (character) to travel with the moving platform when it jumps on it.

I have searched the forum but can not find anything.

Thanks
D

Comments

  • Mcreator83Mcreator83 Member Posts: 120
    been searching for a solution for this as well. weird that no one has answered this yet.

    there was a video of a game were an actor jumps on small planets and then gets eaten by monsters at the end of every level. how was that done? i saw it here so i think it was made in GS. might be wrong though.

    any help would be appreciated and would help me continue development of my next game.

    thanks!
  • ashtmjashtmj Member, PRO Posts: 405
    I assume you are going left/right. here is the only way I've found, but it works well.
    if player collides with moving ledge constrain player's self motion X to 150 to move right -150 to move left(or whatever speed your ledge moves at)
    if the ledge is changing between left and right you'll need a global attrebute so both the ledge and the player know which way the ledge is moving

    hope that helps :)
    -Ash
  • Mcreator83Mcreator83 Member Posts: 120
    what if it is a platform that moves in circular motion around a point that can be moved with your finger?

  • zeroazulagenciazeroazulagencia Member, PRO Posts: 12
    Maybe yo can do this:
    Create a attribute in the game, index type, so we can storage there the value of the platform
    Next the platform can save in this attribute his position.x, you can create a timer that do this every 0 seconds
    Next you can make the actor when collides with the plattform, and when it does you can make it Constrain Attribute Actor.x to this attribute.
    Check this example.
    www.cristianparada.com/salad/test_standplatform.zip
  • BryceVanceBryceVance Member Posts: 13
    its in this video
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Make sure your player sees the platform as ground and increase the friction.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Thanks for posting my video but this thread is very old. :)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @BryceVance, please don't post on threads that are this old (18 months).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

This discussion has been closed.