Announcement

Collapse
No announcement yet.

Creating An Auto-jump at Ledge System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Creating An Auto-jump at Ledge System

    I've been wanting to make a system where the player-character will autojump when it gets to a ledge, exactly like in 3D Legend of Zelda games.

    To be honest, I have absolutely no idea how to go about this.
    If anyone has any ideas, or actually knows how to, please feel free to share. Help is greatly appriciated!

    #2
    There may be a more refined way of doing this, but if you place a Box Trigger at the end
    of the ledges you can use this to make your character jump.
    https://speed7.artstation.com/

    Comment


      #3
      Send a line trace down from your character that checks for ground beneath the character. If your character walks off a ledge, add force in the positive z direction to send them upward. Experiment with the amount of force and precise position/length of the trace until it feels right.

      Then you can also check the current velocity of the character when they start falling so you can make it so they only jump when moving forward and at a certain speed.
      Procedural, modular, on-the-fly animation - iTween For UE4
      - Actors - Components - UMG - Ease In - Ease Out - Path-constrained Animation - $0

      Runtime Datatable
      -All the fun of DataTables dynamically loaded from text or Google Sheets while your game is running!

      Comment

      Working...
      X