Jumping on the edge of a platform help

FirstDanFirstDan Member Posts: 208
edited January 2012 in Working with GS (Mac)
Hi

Does anybody know how to jump on the edge of a platform and pull yourself?

More specifically top left edge of a platform as well as top right edge.

Thanks
Dan

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    What do you mean by "Pull yourself"?
  • FirstDanFirstDan Member Posts: 208
    As in if you jump on the the edge of a platform, you would hang of the edge of the block and by pressing A you would just move up and stand on the platform.

    Hope that makes more sense!
  • MotherHooseMotherHoose Member Posts: 2,456
    edited January 2012
    aha Pull yourself up! … (the other connotation of 'Pull yourself' might make the player go blind! ;)

    Rule: when
    {condition: player jumps}
    -changeAttribute: self.Motion. Linear Velocity To: whatever moves him in the correct direction.
    -change image or do animation behavior

    Rule: when
    {{some vector to angle or magnitude (player to platform) function} < a number or and exp. {EX: platform.Position.X - (platform.Size.Width/2)}}
    -changeAttribute: self.Linear Velocity To: 0
    -change image to hangingFromImage
    -change self.Position.Y To: whatever makes the image in the correct relationship to the Platform's Y.

    do an animation behavior for the pulling up sequence (4 images)
    -with interpolate self.Position.Y To: platform.Position.Y+ # to get the placement atop the platform (half the platformWidth?)
    -with interpolate self.Position.X To: platform.Position.X

    MH
  • FirstDanFirstDan Member Posts: 208
    Ha ha @MH

    Thanks for that, I will try that, seems complex but I'm ready. :-)
Sign In or Register to comment.