Stop actor from jumping through platform help

I have my actors Player and platform in this case.

I set my collision/collide set up so the player jumps and lands on the platform. My problem is, when I go underneath the platform and jump, he goes through the platform and lands on top.

How do I make it to where he does not go through the platform?

I did some searching and all I am finding are tutorials on how to jump through platforms and land on them.

Thank You.

Comments

  • sparkaniasparkania Member, PRO Posts: 300
    what commands are you using to make your player Jump. You might be somehow overriding the collision with your jump.
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    When actor overlaps/collides with ground, do game.Jump Count to 1.
    Collide bounce when colliding with Ground

    Same with Platform...

    Then I have

    if game.jump is true and game.Jump Count > 0

    timer (for 1 second) Run to completion

    Change Attribute self.Motion.linearVelocity to 10000

    As for the A button, (Which is used to trigger jump)

    When mouse is down and mouse position is over actor

    do

    set game.jump to true.
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    edited January 2013
    I changed my velocity thinking that might be the cause. I dropped it from 10000 to 1000 and adjusted the platform closer to the ground. He no longer jumps through the platform but hits it like I want. But he can not quite jump up onto the platform...

    It is 2am. I am going to head to bed and take a look at this in the morning. Hopefully someone can help me come up with a solution.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Set the density higher on the platform.
  • sparkaniasparkania Member, PRO Posts: 300
    I agree with Bacon.. the force of your jump might be causing you to out-do the collision. turn the density WAY up..
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    edited January 2013
    I tried what you said Bacon, I put Density to 50,000 to see what would happen. I even dropped my Player velocity to 5000. I am still having the same effect.

    I could be wrong but it seems that if my player can jump higher than the platform, he will jump through it. If he can not jump higher than the platform, he collides with it like he should.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yeah 100 is good and like 10 on your player. I would make sure you put collide behaviors in both actors.
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    Hey Bacon,

    I tried 100 on the platform and 10 density on the player. I put a collision rule inside platform and have one inside player and still no go.
  • iamaslayerinsideiamaslayerinside Member Posts: 6
    Update: I have been messing around with the attributes trying to figure this out.

    I have it set up now to where he only goes through the platform once and then he can no longer jump through the platform. I am unaware of how this is happening. Once I jump through the platform the first time, I can no longer jump through it.

    Anyone have a suggestion to try?
Sign In or Register to comment.