How to Create a Leveling XP System in Unreal Engine 5

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 44

  • @cyber_joueur1482
    @cyber_joueur1482 8 месяцев назад +14

    Hello, thank you for this fantastic tutorial!
    I'd like to clarify something in case people are going through this: you lose xp by resetting xp to 0 after leveling up, fortunately there's a very simple fix:
    - on the event graph in BP_ThirdpersonCharacter, around 2:55, between the "branch" true and the "increment int", place the "set" directly, link its condition to a "substract" node and indicate for the two inputs of this node "Get Xp" and "Get MaxXp".
    In this way, you can recover the remaining xp and add it directly to your XP.

    • @cyber_joueur1482
      @cyber_joueur1482 8 месяцев назад

      @ciekaw I am not sure how it will react in that case, will test it when I am back home. If it don't work I think you can put a loop that have a condition of XP greater than XP Limit -> subtract XP Limit and add a level

    • @cyber_joueur1482
      @cyber_joueur1482 8 месяцев назад

      @ciekaw glad to help :))

    • @adrimanti
      @adrimanti 8 месяцев назад

      ty for the tip and ty for this tutorial. but i found a bug.
      1) This system is set each lvl y 50 max XP. This method only works fine if the action than less than the maximum experience value per level, that is, 50. If you win more than 100 the progees bar and the level number dont sohw the correct xp.
      Some idea? Ty
      💜

  • @NeLsInFiNiTy
    @NeLsInFiNiTy 2 года назад +5

    Love the videos, would really love to see a video series out there helping beginners on the latest UE5, be able to build a survival game from the ground up, start to finish, small game & simple to help better understand what goes into making a survival game, keep up the amazing work :)

    • @GorkaGames
      @GorkaGames  2 года назад +1

      Thank you man! yeah great idea, I will think about making a series for beginners were we will cover on making a small game 👍

    • @aufgespielt3768
      @aufgespielt3768 Год назад

      @@GorkaGames Very Cool! By the Way! Great Channel! ;)

  • @doomcheek
    @doomcheek 2 года назад +4

    Like a charm. Thank you

  • @moniqueoosthuizen7879
    @moniqueoosthuizen7879 5 месяцев назад +2

    How would you set up a crafting system? That would be a great tutorial!

  • @shadowozey
    @shadowozey 3 месяца назад

    This helped me make a health bar too!

  • @bobbville
    @bobbville 2 года назад +1

    Cool vid! 🍻 loving the content!

    • @GorkaGames
      @GorkaGames  2 года назад +1

      thank you man! I really appreciate it

  • @aufgespielt3768
    @aufgespielt3768 Год назад +3

    Very helpfull but you should expand this with a different max XP to Level Up for each Level. I figured it out myself but it’s a Tip for the future ❤

    • @beppolaut605
      @beppolaut605 Год назад

      @aufgespeilt3768 @Gorka Games that is what i need too. i need a system for each enemy and each lvl difference between the actor and the enemy.

    • @Denomote
      @Denomote Год назад +1

      you just have to change the value of the max xp variable whenever you level up

  • @NonameOne2
    @NonameOne2 2 года назад +1

    Hello from Kazakhstan😁

  • @ProllyDontKnow
    @ProllyDontKnow Год назад +3

    How would I go about making different exp amounts for different types of enemies?

    • @shadowozey
      @shadowozey 3 месяца назад

      I have it as a custom event within the enemy blueprint and set the exp amount to pass back to the player there

    • @WrathInteractive
      @WrathInteractive 12 дней назад

      Just set the EXP amount on calling Add EXP.

  • @DailyPaily
    @DailyPaily 2 года назад +3

    Thanks. What if I decide to implement a leveling in my puzzle game ?
    Siempre viene bien, y si me da por implementar un leveo a mi juego de puzzles ? nunca se sabe

    • @GorkaGames
      @GorkaGames  2 года назад

      Si simplemente puedes integrar lo del tutorial a tu juego de puzzles, si eso es a lo que te refires 😄, si necesitas resolver cualquier duda no dudes en avisarme!

  • @Isnero_A
    @Isnero_A 8 месяцев назад

    First of all, great job. I need help with a system to upgrade my towers in game. Basically a player brings resources (supply, personnel, and siege weapons [optional]) to an NPC and once it has enough it places the first tower, then the player can upgrade the towers as they progress in the game. I have a lot of it done, just need help bringing it home.

  • @NonameOne2
    @NonameOne2 2 года назад +1

    Ты лучший, по твоим урокам игру создаю 🔥🔥🔥

    • @GorkaGames
      @GorkaGames  2 года назад

      thank you man!! Im glad I could help!

  • @Cutlass2436
    @Cutlass2436 2 года назад +4

    How do you make it so each level up requires more XP than the previous?

    • @GorkaGames
      @GorkaGames  2 года назад +5

      So what you would do is that every time you level up, you increase the "maxXP" variable to a higher value. For example in the branch where we check if the current xp is larger or equal to the max xp, after all that you could increase the maxXP by a certain percentage or value each time

    • @ossacipd8798
      @ossacipd8798 6 месяцев назад

      Sorry for commenting on a year old post but, you mean just make another branch to make the max xp higher each time a lvl is gained?

    • @gtagats7574
      @gtagats7574 6 месяцев назад

      @@ossacipd8798you could make a branch to set the new MaxExp, by using multiply.. the MaxExp by the Level.. and use the return value to set the new MaxExp.. since the level goes up, the value will go up as its multiplied each time.

    • @ManuelSanchez-gv3mq
      @ManuelSanchez-gv3mq 6 месяцев назад +1

      @@ossacipd8798 Not sure if you figured it out yet, but basically after the branch you would get the MaxXP and add it to the MaxXp times whatever % you want. Sorry if I didn't explain that right.

  • @fantasmaghost
    @fantasmaghost Год назад

    it helped me a lot, would it be possible to show the level information within an inventory?!

  • @Viluxion
    @Viluxion 2 года назад +4

    ¿Ya no harás la versión en español?

    • @GorkaGames
      @GorkaGames  2 года назад

      Hola! Si hare mas pero menos de vez en cuando, ya que la mayoría de mi publico es habla inglesa.

  • @NonameOne2
    @NonameOne2 2 года назад +1

    Friend, how to make the character gain experience when the enemy is destroyed? thanks in advance

    • @GorkaGames
      @GorkaGames  2 года назад +4

      so when you run the enemy`s death event, you cast to the player, and call the "Add XP" event, with the amount of XP you want to add

  • @ApocalypsFroid
    @ApocalypsFroid 2 года назад

    hello sr. can you make experience bar to get when kill monster ?

  • @Trickle99
    @Trickle99 9 месяцев назад

    Looks great but can't get it working for the test 4:28 . Keeps continuing to output 0.0 every time I press it. Anything I could have done wrong anyone? Or is it because this is out of date?
    Edit: Nvm, figured it out 5 minutes later. Did a divide instead of plus at 1:26 lol 😅.

  • @glycharevgame2059
    @glycharevgame2059 6 месяцев назад

    До этого я додумался и самостоятельно, но проблема в том что с каждым уровнем сложность должна повышаться. А как это сделать я не пойму

  • @GrigoriNightDragon_imabba-p3
    @GrigoriNightDragon_imabba-p3 9 месяцев назад

    hello how to do a level cap?

  • @pietpanzerpanzer5335
    @pietpanzerpanzer5335 6 месяцев назад

    Dam that a veeery cheep way of doing it. Doesnt fit for me : (

  • @oldweststories
    @oldweststories Год назад

    Great tutorials, thank you so much. I am having a problem I hope you can help with. I followed your tutoral "How to pick up coins" and got that working. I added in this XP system and got it working. I now have the same issues as @lersarteloza3643 posted previously and I tried your advice from that question, "so when you run the enemy`s death event, you cast to the player, and call the "Add XP" event, with the amount of XP you want to add". I tried following that however, I obviously missed something as it did not work for me. I wonder if you may be able to offer any further help or whether you have a tutorial already that might guide me through. Thanks for considering this.