Jumping on the edge of a platform help
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
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
Hope that makes more sense!
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
Thanks for that, I will try that, seems complex but I'm ready. :-)