Problem jumping through platforms

bagofeyesbagofeyes Member Posts: 2
edited January 2012 in Working with GS (Mac)
I have a simple rule set that the character can only jump when he is colliding with the ground or a platform to prevent double or triple jumping. I also have it set that the character can jump through platforms and land on top. This then creates a problem where the character can jump again as soon as he overlaps a platform slightly. I want him to only be able to jump when he is on top of it. Does anyone have any ideas to get this working?

Comments

  • JakeMorJakeMor Member, PRO Posts: 136
    Say that in order to jump your y velocity has to equal zero. Before you do create a display text behavior to display your main characters y velocity (motion>liniar velocity>Y) if you see that it jumps arround from -10 to 10 or aomething say that in order to jump you need to be overlaping or colliding with the floor, y velocity mult be greater than -50 (just to be safe), y velocity must be less than 50. Just make sure the speed of your jump is faster than 50 or whatever number you choose

    Jake
Sign In or Register to comment.