2D Godot 4.1 RPG - 2 - Player animations

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 51

  • @theotherchief9608
    @theotherchief9608 10 місяців тому +5

    Thank you so much!! I appreciate how you take the time to explain issues that may come up. I was having so much trouble calling my animations and you saved the day.

  • @TheCatMurgatroyd
    @TheCatMurgatroyd 2 місяці тому

    omg thank you so much!!
    I had two other tutorials, but I love that you used the animation tree but my character wasn't sliding around 😁 so, the perfect match ❤

  • @OneFurryLlama
    @OneFurryLlama 6 місяців тому +1

    Just wanted to say, THANK YOU! Your tutorials are amazing!

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

    This is one of the better 2d RPG tutorials for Godot that I have seen.

  • @alexdl.89
    @alexdl.89 11 місяців тому

    J'ai regardé une dizaine de vidéo et votre série est de loin la meilleur et la plus détailler pour quelqu'un qui ne connait absolument rien a Godot ou au codage (moi).
    Merci pour cette série très instructive!

    • @jeanmakesgames
      @jeanmakesgames  11 місяців тому +1

      Merci beaucoup, ça fait super plaisir a lire! :) j'essaie toujours de garder en tête les débutants quand je fais mes videos, ce qui demandent un peu plus de temps et ca fait plaisir de voir que c'est non seulement utile mais aussi apprecié :)

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

    I wish there was a cleaner way instead of having 4 animations for each action 😩 I saved a little bit of work by using a “Flip Sprite” keyframe for left/right but it’s still very messy

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

    18:03 I think to have it disabled at the start of the game all you have to do is go to the RESET animation in your animation player and have the collision box disabled!

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

    Amazing! Please don't stop

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

    Really thanks! I was stuck yesterday with the character jittery😂

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

    Bonjour, je viens enfin de finir cette vidéo comme j'ai du redessiner tous les sprites et ça a pris pas mal de temps 😅 Je vais enfin pouvoir passer à la suite 😼
    Merci beaucoup pour les tutos !!

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

    The best tutorial! :)

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

    best tutorial ever. thank u

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

    Hi, this video is simply amazing and made me actually learn something new today. But I have an issue: just finished the whole video and mirrored every step, I don't know why, but after the test launch of the game the idle animation works only in the beginning and after making any movement, it gets replaced by movement animations. Any idea what causes that?

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

    goodjob

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

    Very nice tutorial

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

    I learned a better way to making animations then creating each up,left,down and so on.
    DUPLICATE!
    so for Idle. insead of saving key on fram, save on frame cords.
    once youve finished idle right.
    duplicate the animation, rename it idle down
    then in the animation tree click the animation and rename it to idle down.
    then change value in the inspector to the coresponding ones.
    maybe its just me but i feel it saves time and is alot easier =P

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

      oh frame coordinate? that's an interesting way to do thing, thanks for sharing, i'll give it a go for sure :)

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

      ​@@jeanmakesgames i really like it since you dont have to put down all the keys every single time, sure for the sword attack youll have to do the collisionshape positioning by hand, but the "on//off" is the same for all of them so that you can just leave in place and only bother with once :)

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

      @@jeanmakesgames also, on the $sword/CollisionShape2D.disabled = true part, you can just click and drag the shape to script and itll auto put the path there.
      if you hold ctrl befor you lift your finger of the click button, itll make a @onready var collision_shape_2d = $sword/CollisionShape2D automatically =P
      (if i get to learn things like shift/tab and alt/arrowkey's from you i can share some of the things i get to learn too xD)

  • @Colton-fc7sh
    @Colton-fc7sh Рік тому

    i used the exact code and animations to the point but when the player stops moving, it doesnt play the idle animation. Instead, it just pauses the walk animation

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

      hello, have you double check the fact that you are calling the anim state travel of idle in the move function when the player velocity is at 0?

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

    Merci quand même pour la vidéo, mais sérieux c'est quoi le but de parler si vite, ça me gave.

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

    Bonjour encore ! Alors au final j'ai du revenir dessus parce que jai des problems avec l'attaque, la collision shape ne reste pas du tout a sa place dune animation à une autre et je ne comprends vraiment pas pourquoi
    Lorsque je fais une nouvelle animation d'attaque (mettons a droite) ça me decale celle que je viens de faire
    Et jai bien verifie, je prend bien le temps de passer de Sword a CollisionShape entre les etapes 😢

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

    I really like these tutorials, I am in the process of making a game myself.
    Can you do a tutorial on making a combat system?
    I already made an enemy which can detect the player and chase him , but I am struggling with the enemy dealing damage.

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

      Thank you! Yes, combo system is on my list of things to do for this tutorial, i just need to figure out the best way to do it :)

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

    I was looking for an animation tree explanation for quite some time. This did a great job. But my question is what if we already made our animations for the player and wrote the code and utilize the flip_h to handle the left and right motions. I did all that before learning about the animation tree and am looking to move over to utilizing the animation tree as it seems more powerful, but am hoping there is a way to not have to rewrite my code that is utilizing flip_h based on the direction of the player, as I utilized that for attacking as well. I ask because the Sprite sheet for the player only has a right direction facing walk and attack as it is intended to use flip_h

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

      Thank you :) you can flip the scale if you want to flip a sprite, you do something like scale.x -= 15 (you have to adapt that depending your code), that works too to flip a sprite :) animation trees is just easier to use when you understand it, thats why I'm using it :)

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

    hey do you have to add the area2d on the another animations or just the sword animations??

  • @AkunGabut-cq6do
    @AkunGabut-cq6do 7 місяців тому

    why didn't the animation walk works on the animatipn tree when i tested it? could you help me please? im very stuck on the walk animation

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

      Hello, probably the blend mode isn't setup right or the travel isn't set correctly, or the transition is not set correctly :) If you follow all the steps, it works :)

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

    thanks for the video, a question, what happens if my animation sprites of the same character are from different pngs? how can I add them to the game?

    • @Big_Theft_Auto
      @Big_Theft_Auto 6 місяців тому +1

      I think so, in another video i watched, the Guy said that you can do frame by frame but i dont know how😂

    • @Big_Theft_Auto
      @Big_Theft_Auto 6 місяців тому +1

      What i am doing is i have a very Big Sprite sheet with all the animations together, and in case i want to add more, i left a lot of free space and when i add the rest of the sprites i re-import the new sprite sheet and the old ones would be in the same place as before

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

    This looks like a simplified state machine 🥹

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

      It does :) in the next video im using it with a state machine to control the sword and future jump movement, it is a very handy way to get the direction right :)

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

      @@jeanmakesgames amazing, and just realized a bought ur course on udamy awhile back :)

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

    Thank you so much for this.
    I'm getting stuck on the CollisionShape of the sword. For some reason I can't move the sword Area2D after adding it to the SwordRight animation.
    You simply put the minus in front and it works, but I can't move it at all.
    Anyone has an idea why?

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

      Hello, is the animation tree active? If yes, that's why. when the animation tree is active we can't do modification in the animation player, so the solution is to untick active, made the modification, and the tick active again. I'm saying it in the video if I remember well :)

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

      @@jeanmakesgames Thanks for your quick answer! This was the exact problem. Thank you so much!

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

      @@L43NZU you're welcome :)

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

    I'm not sure the problem but for the anim_state.travel("Walk") and Idle lines it tells me "travel" is a nonexistent function in base 'Nil' any ideas?

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

      Hello, if its in base nil it means it cant find travel, so its probably a problem of connection in the setter/getter of your walk animation (maybe a typo?). Nil is always because it cant find the item in question 🙂

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

      @@jeanmakesgames I found the issue when I had to apparently retype the “parameters/playback” and it all worked out probably just a typo. Thanks man!

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

      @@aztechgames5408 You're welcome :)