How To Move with UI Buttons in Unity

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • In this video of Unity, I will show you how to make your character move in Unity 2D with UI buttons.
    SCRIPT:
    ► pastebin.com/d...
    SOCIAL:
    ► Twitter: / jadtrugaming1
    ► Twitch: / jadtrugaming
    ► Teespring: jadtrugamings-...

КОМЕНТАРІ • 43

  • @Jadtru
    @Jadtru  3 роки тому +14

    If you enjoyed the video make sure to like and subscribe

    • @saefawad5831
      @saefawad5831 3 роки тому +1

      i have a question what did u drag at 10:02 to player bcs we cant see that

    • @Jadtru
      @Jadtru  3 роки тому +1

      Ok sorry for the late reply but I dragged player model

    • @Jadtru
      @Jadtru  3 роки тому +1

      The audio is a bit delayed next video it will be fixed

    • @Froe12
      @Froe12 2 роки тому

      @@saefawad5831 idk why telll plssss

  • @JohnnyLance101
    @JohnnyLance101 Рік тому +3

    This video finally made me understand the idea of assigning the functions to buttons from a script attached to the player object. Thank you!

  • @amaniYT2023
    @amaniYT2023 5 місяців тому +1

    For 3 days I have been trying to add screen buttons and it did not work... Thanks to your simplified explanation with a script, the method worked... Thank you from the bottom of my heart... You are the best 🤩🤩💕💕

    • @rrr9719
      @rrr9719 3 місяці тому

      Yes!! It’s very easy👍

  • @Cabrix-h8q
    @Cabrix-h8q 3 місяці тому

    Thank you very muuuuuchhhhhhhh!!!!!! I never understood why when I was making my buttons they were always on "On click" mode. Thank you now I can complete my game to put on the Play Store!

  • @fluffystuff
    @fluffystuff 2 роки тому +2

    after watching this tutorial i feel confident in writing this code by myself, Great video

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

    how did u add the function move.PointerDownLeft in EventTrigger in LeftButton ? You cut that part from the video

  • @mudssirkhan3D
    @mudssirkhan3D 2 роки тому +1

    Thanks for this , it really helped me alot in making may game alive.
    The method of assigning functions values to the button alowed me to interact with buttons.
    I found your video really helpful ,
    Thanks again for this.

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

    Thank you brother its so helpful for me..i hope you more success in your life

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

    i tried using chatGPT but he was to dumb but this turtorial helps me very much thanks

  • @CHIKKOAJ
    @CHIKKOAJ 2 роки тому +4

    I spent over an hour writing this code. And with over many error messages. I realized that you made a pastebin, whyyy

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

    How can I flip my character sprite?

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

    Thank you for the tutorial, really help me for my final project :)

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

    Thank you dude for this♥️

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

    Hi great tutorial, I wanted to ask you I did everything as indicated the procedure, the keys work but when I click on one of the two buttons the player moves quickly and does not stop if I leave the button I ask for help thanks

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

      There is the code in the description so try that

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

      And maybe you did not do the on pointer down to the onclick

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

      @@Jadtru Thank you so much for the availability, I resolved do more videos of this series, I hope they are fantastic, you should make videos about the progress of the game, the levels, the enemies, bonus objects while the player walks, I hope thanks again

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

    Can This work in mobile game

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

      It can work with any device with touch

  • @WSeek-
    @WSeek- Рік тому

    I can't see the codes, write it as an answer from the comments section of the codes

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

      The code is in the description

  • @kenancetin29
    @kenancetin29 7 місяців тому

    useful video. Thanks

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

    thanks u. u saved my life

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

    wow thanks soo much a new subscriber is me!

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

    Good job matey!! Thanks a lot!

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

    thanks really appreciated

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

    thank you so much i love you

  • @cyberscify
    @cyberscify Місяць тому

    Sweet

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

    thx

  • @Rei-Dev
    @Rei-Dev Рік тому

    Thank you so mach ❤

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

    man you smart

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

    thanks bru

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

    Thanks

  • @fruit100gamer4
    @fruit100gamer4 2 роки тому

    Thank you

  • @KnavishData
    @KnavishData 2 роки тому

    nice video

  • @sigmachad394
    @sigmachad394 2 роки тому +1

    nice