How To Ledge Climb in Unity

Поділитися
Вставка
  • Опубліковано 8 лис 2022
  • Complete course on how to make 2D Platformer - bit.ly/ALEXDEV_P_01_23Y
    Complete course on how to make Endless Runner - bit.ly/ALEXDEV_R_01_23Y
    Subscribe for more videos and free tutorials - bit.ly/AlexDevOfficial
    Cool videos :
    God of War's Axe mechanic in 2D - • God of War's Axe Throw...
    How I created Dead Cells - • I tried to create Dead...
    First game in 7 Days - • How I made My First Vi...
    Souls like 2D RPG playlist - • I guess I'm starting D...
    2D Platformer Series playlist - • Install Unity In 2022 ...
    Check how to do ledge climb in unity .
    #alexdev #devlog #indiegame #2dplatformer
  • Розваги

КОМЕНТАРІ • 40

  • @Bardent
    @Bardent Рік тому +8

    That is a great way to do ledge detection I love it!!

  • @thomasmartin7548
    @thomasmartin7548 9 місяців тому

    Thank you for your awesome tutorial. You helped me a lot with my school project 😀

  • @kiklios4541
    @kiklios4541 Рік тому +2

    Thank you very much! I have been struggling to figure all of this out for so long. Using your base code and changing a whole lot, haha, I was able to convert it to work with my 3D fps. Thank you again very much. Subscribed.

    • @unityalexdev
      @unityalexdev  Рік тому

      Glad it helped! Anything else you struggling with? I'll make a tutorial

  • @gorabepary2747
    @gorabepary2747 Рік тому +2

    This is an amazaing way to check for ledge. I have been looking for a way to add ledge climb for a while, so this was a great help to me. Thank you!

  • @harihs7838
    @harihs7838 Рік тому

    great waiting for the rpg game

  • @bilalk103
    @bilalk103 Рік тому +1

    Just watching your videos gives me the motivation to create games

  • @user-pw2uu7zo5b
    @user-pw2uu7zo5b Рік тому

    Саня, красавчик. Я в 1988-1991 пытался рисовать подобные вещи на Спектруме. Понятная тема )

  • @random_precision_software
    @random_precision_software Рік тому

    Just come across your channel, I've subbed and hoping for more videos!

    • @unityalexdev
      @unityalexdev  Рік тому

      Welcome aboard! I will post very soon ,just need to finish course recording

  • @junaidywijaya
    @junaidywijaya Рік тому +1

    nice tutorial, thank you

  • @IAMMAT87
    @IAMMAT87 День тому

    Great. I might use this one day. I already use one using grid from another tutorial.
    I have one suggestion, maybe you might use a effector platform where u can jump through the platform.
    The player will grab the ledge from the inside "Not desirable" so maybe use a ray cast from the ledge to detect if player is facing it, then turn a bool on the player script.
    When "FacingEdge" is true, the ledge grab can also be performed.
    Maybe there is a better way, but that`s what i found to work. Cheers Mate

    • @IAMMAT87
      @IAMMAT87 День тому

      another way i ill use is a trigger to check if inside a effector...if so, make a condition for ledge grab that checks we are not inside that bool.

  • @danielalvesluffy2642
    @danielalvesluffy2642 8 місяців тому

    Good

  • @mrflopa3684
    @mrflopa3684 Рік тому

    YES FINALLY

  • @debigcheese
    @debigcheese 10 місяців тому +1

    tip:if you have a character that can walk left and right then make offsetLeft1 and offsetLeft2 and make the x values the opposite of when looking right.

    • @unityalexdev
      @unityalexdev  10 місяців тому +1

      yeah, you could also make facingDirection variable to indicate which side you are looking to and then jsut multiply offset by facingDir

    • @debigcheese
      @debigcheese 10 місяців тому

      ​@@unityalexdev I tried doing that at first but it didn't work for me

    • @haleemkehinde4546
      @haleemkehinde4546 9 місяців тому

      Sorry but I don't get what u mean here
      Can u explain

  • @olivermetz8242
    @olivermetz8242 6 місяців тому

    Hey Alex, following your rpg course, could this be easily implemented in there?

  • @RaidenHeaven
    @RaidenHeaven 5 місяців тому

    How you know the position of the ledge?
    Sure there the area of the lower half the circle, but doesn't that mean you will get a general idea of where the edge is? That means you may get a lower position higher or even a farther position.
    Right? Wouldn't that cause issues sometimes?

  • @bishopjackson2264
    @bishopjackson2264 8 місяців тому

    Heya, what is the character from?

  • @user-tb4by9lx4y
    @user-tb4by9lx4y Рік тому +1

    Nice👍

  • @Kazoku002
    @Kazoku002 Рік тому

    I'm prototyping and don't have animations set up just yet. Is there a way to trigger the 'climb' without doing that? I've figured out the edge detection but the player just hangs there.

    • @unityalexdev
      @unityalexdev  Рік тому

      I don't quite understand how you can do ledge climb without animation. But if you need it that way , you can use Invoke i guess , i mean you could try

    • @Kazoku002
      @Kazoku002 Рік тому

      @@unityalexdev Right, I should have explained. I'm prototyping in a barebones state so I have a 2D box as the player character. I'm new to Unity and gamedev so I'm really trying to understand the basic concepts behind how to do what I'd like to do in C#. My strength is art so I'm really trying to avoid that side of things until I get C# under my feet.
      Would it be INVOKE > TRANSFORM.POSITION or something similar?

    • @TheOriginalDuckley
      @TheOriginalDuckley Рік тому

      I’m a little late and you probably solved this already but you could probably make a placeholder animation using the same square sprite until you replace it with your art

  • @random_precision_software
    @random_precision_software Рік тому

    Hey m8, where can I get the animation for ledge climber?

    • @unityalexdev
      @unityalexdev  Рік тому

      this assets provided in my course , you can get it there or you can buy them from creator of this assets . his name is Dead Revolver

  • @airin8681
    @airin8681 11 місяців тому

    Can i get video to wall detect?

    • @unityalexdev
      @unityalexdev  11 місяців тому

      Could you be more specific? You want to know how to do wall detection?

  • @Cristofercat
    @Cristofercat Рік тому

    it only shows false and it never shows true in the console

  • @Satenc0
    @Satenc0 4 місяці тому

    Hey Alex I think I will enroll in your course for 2D RPG, I saw the sections and I think it has everything I need, but I wonder if it has dialogues? I think that is the only thing it is missing, like just dialogues between npcs and players at some cutscenes, no need to let the player select options, just "hardcoded dialogues", do you have that mechanic in another tutorial? Thanks :)