Search Unity

Doodle Jump Style platforms

Discussion in 'iOS and tvOS' started by yesimarobot, Apr 18, 2010.

  1. yesimarobot

    yesimarobot

    Joined:
    Jun 19, 2009
    Posts:
    24
    How would you suggest making Doodle Jump style platforms in a game? By this, I mean platforms or objects that can be jumped through vertically but when fallen on will apply forces or be solid.
     
  2. yesimarobot

    yesimarobot

    Joined:
    Jun 19, 2009
    Posts:
    24
    I've messed around with testing the players y position against the colliders y position with mixed results.
     
  3. JohnnyA

    JohnnyA

    Joined:
    Apr 9, 2010
    Posts:
    5,041
    How about three colliders, one for the platform and one above and below it.

    Top and bottom colliders are kinematic.

    When you hit the bottom collider it turns on isKinematic for the platform collider.

    When you hit the top collider it turns isKinematic off.