Tutorial: Create Custom Resource Counting UIs Using Verse in UEFN!

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • In this tutorial, learn the basics of designing custom resource UIs in Verse. These are great for tycoons!
    If you want to cut out the work, you can download the code here:
    pastebin.com/P...
    Join our Creative Community Discord: / discord
    Twitter: @maestro_shark
    Twitch: / maestrosharkcreative
    TikTok: @maestroshark

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

  • @ryanperrott2014
    @ryanperrott2014 9 месяцев назад +5

    So I have an image on the same Widget that I want to show underneath the text. How would I add this to the code seeing as the code currently is only adding the text and nothing else in the widget.

  • @AggressiveSpartan
    @AggressiveSpartan Месяц назад

    Thanks it helps me a lot and save me lot of money. For me its not posible to code by my self and i cant find friends to create maps with me, its sad because i have in plan big projects but solo its imposible to do it next to work.

  • @islander_fn
    @islander_fn Месяц назад

    To Widgets the scale correctly, use the "Overlay" panel

  • @DomZaddy
    @DomZaddy 11 месяцев назад +2

    This is exactly what I needed haha! Thank you Maestro!

  • @SciPunk
    @SciPunk 7 месяцев назад +2

    Great tutorial, UEFN definitely needs a device for this

  • @sain120
    @sain120 6 месяцев назад +1

    Has anyone solved the problem of the HUD scaling? So the UI doesnt change position when HUD scaling

  • @StrongzGamez
    @StrongzGamez 9 месяцев назад +1

    your the best 3 tutorials down awesome

  • @Visual3DThings1000
    @Visual3DThings1000 27 дней назад

    Hey i want to make custom currency wich is not gold and not an item in the game. And idk how to do it. I tried to make it when i earn gold the number goes up and it didnt work.. pls help

  • @luisortizaguilar8840
    @luisortizaguilar8840 4 месяца назад

    Excelente tuto Bro sigue así te mando saludos y bendiciones

  • @artbytav
    @artbytav 7 месяцев назад +1

    This UI method seems to have stopped displaying on my map after the 28.10 patch yesterday. Are you getting the same thing? is there a workaround?

  • @UnrealPirate
    @UnrealPirate 10 месяцев назад +1

    Hey thanks! But why this code is not working for multiplayer?

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

    Awesome tutorial, thanks!

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

    where's the canvas tutorial that you mentioned on 7:58 ? I couldn't find it
    is this one "Interactive UI Buttons in UEFN/Fortnite Creative [Tutorial]" ?

  • @Balapara64
    @Balapara64 4 месяца назад

    Hello! Could you make a gold/sec indicator as well, it would help a lot!

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

    thanks for sharing the code!

  • @VidXon
    @VidXon 8 месяцев назад +1

    Can you make a tutorial on voting system with ui in verse

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

    Love the tutorial, was wondering if you could do a small tutorial explaining how we could show multiple counters (For multiple resources)?, i managed to fix the anchor but confused slightly on how to approach the multiple counters part.

    • @MaestroShark
      @MaestroShark  8 месяцев назад +1

      Just a simple copy and paste and changing of variables to make multiple counters. In the ui function, add a new text block widget, in the updating function include that text block widget

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

      @@MaestroShark I tried duplicating and editing the text block widget but kept getting stuck on errors. I'm extremely new to verse, i joined the discord asking for help. I would really appropriate it if you could show me what you mean.

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

      @@umf4798Yeah just keep working at it. Like he said, make sure your variable names aren't the same. Keep working at it!!! Coding is not easy at all and he does a great job of explaining things, so just keep watching and learning

    • @merdo4611
      @merdo4611 7 месяцев назад

      how did you fix the anchor thing?

    • @umf4798
      @umf4798 7 месяцев назад +1

      @@merdo4611 It can't be fixed but you can recommend the hud scale so its always in the same place

  • @ToMa10Missimo
    @ToMa10Missimo 9 месяцев назад +1

    Are you going to do an event concept?

    • @MaestroShark
      @MaestroShark  9 месяцев назад +1

      Unfortunately not, all the cards were against me. I’m hoping to make one this winter.

  • @RynttGmbl
    @RynttGmbl 7 месяцев назад

    How would you add a counter of coins per seconds not total value

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

    How do I get over 3 layers in paint?
    Pls I need help I need to make this map quickly but I don’t even have the dirt paint layer

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

    I was trying to make this code for multiplayer but when we start the game the gold amount start switching between how much i have and how much other players have , can you help me to fix it ?

  • @qmerk2661
    @qmerk2661 10 месяцев назад

    i followed exactly, but the text didnt update. so i copied your code from the link, and tried that, and it still didnt update. any idea why?
    EDIT- ok, so i ended up opening a new project and trying it, and it worked, so idk what was happening.
    also in the previous project i was having an issue where, when i would build verse code, and up top where it says to push verse changes, it also kept saying that i needed to push the games changes. and after id do that it still say the same thing. what exactly causes that to happen? cuz that could of been the issue i was having.

  • @nodesofnature603
    @nodesofnature603 7 месяцев назад

    How do you set gold in the inventory using verse tho?

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

    I'm trying to add a second canvas for my map, but it's saying unreachable code when I try to return the 2nd canvas

    • @MaestroShark
      @MaestroShark  8 месяцев назад +1

      “Unreachable” likely means you have a break or return statement before the return statement you want to use. Otherwise you likely defined the function out of scope. If you’re struggling, get the first canvas function working, copy and paste it then change it for your second canvas

  • @youngvegas6672
    @youngvegas6672 10 месяцев назад +1

    now what if we wanted multiple counters for different items? Exm: coins, eggs, etc.?

    • @MaestroShark
      @MaestroShark  10 месяцев назад

      Same process, just add another text block, another canvas slot, and test with a different slot of the conditional button.

    • @Cobbfather
      @Cobbfather 10 месяцев назад

      So do you mean add these into the current verse code or create a new verse file same process?@@MaestroShark

    • @MaestroShark
      @MaestroShark  10 месяцев назад +1

      @@Cobbfather you can easily add these into the same device.

    • @Cobbfather
      @Cobbfather 10 месяцев назад

      Thank You Great Video by the way I Subscribed, I'm new to verse, So would i copy MyCanvas:=canvas: and below then just copy in the offsets for the New Text Block that i would put into the Widget?@@MaestroShark

    • @MaestroShark
      @MaestroShark  10 месяцев назад

      @@Cobbfather rather than copy the canvas, add another canvas_slot below the other one, set up your margins and add another text_block widget. Make sure you update the text and store that text_block to allow you to update
      OR as an easy alternative if this is above/below your gold text, you can just add the text onto your current text_block: for example, “Gold: {NameOfTheGoldCountVariable}
      Other Resource: {NameOfOtherResourceCountVariable}”
      Etc. just make sure you’re using the right conditional button slot to get each counted variable and note that
      is the code for a newline, so when displayed it would show:
      Gold: 0
      Other Resource: 0

  • @EPICEDEN-g7f
    @EPICEDEN-g7f 8 месяцев назад

    when you like buy something with the gold dose it go less

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

    Can you make a tutorial on making custom health and shield bars?

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

    I have a seperate widget hud which is a overlay and the resource counter is showing under the overlay is thereee a way I can makee the resorce counter layer above the hud layer

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

      Swap the order they’re at in your overlay widget. I can’t remember what the order rules are but if you swap their code the counter should appear on top.

    • @merdo4611
      @merdo4611 7 месяцев назад

      @@MaestroShark can you explain it more?

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

    I madea frame for the text, but the text appears behind of the image, any ideas?

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

      That’s my issue, hope he responds

    • @Deadeyq
      @Deadeyq Месяц назад

      did you fix it?

  • @ucuaucu
    @ucuaucu 7 месяцев назад

    How can you make it shorten the numbers? eg 40.5k instead of 40500

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

      divide number by 1000 and add k at the end

    • @UEFNGUIDE
      @UEFNGUIDE 4 месяца назад

      @@ninofranci3922 im getting loads of zeros at the end on my float when i do that, how can i get rid of these

  • @Electriczin
    @Electriczin 10 месяцев назад

    Thanks very much! Is there any way to resize the text?

    • @MaestroShark
      @MaestroShark  10 месяцев назад

      Unfortunately not, that’s a feature Epic should work on! It does resize when hud scale is increased in player settings but obviously that can’t be controlled

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

    This is great, thanks! How do I get MyResource to show up with commas i.e. 1,000,000 instead of 1000000?

    • @MaestroShark
      @MaestroShark  9 месяцев назад +1

      That’d be a great mini-tutorial, I’ll link it for you sometime soon

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

      @@MaestroShark any ideas on this? It's been driving me crazy and I can't find any explanations. I noticed if I pass the UI an integer it has commas but a string doesn't is there a way to convert it to an int?

    • @MaestroShark
      @MaestroShark  8 месяцев назад +1

      @@artbytav you can use simple integer math to separate into multiple variables. For example:
      MyInt = 937,400,290
      MyString = “”
      Val := MyInt/100000 (which would be 937)
      (If Val>0):
      string += “{Val},”
      And so on

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

      @@MaestroShark Thanks so much! I’ll give this a try. I’m an artist so I’m slowly trying to wrap my head around all this verse code. It would be great to see how this integrates into the code in your video/pastebin.

  • @savenkodan
    @savenkodan Месяц назад

    what is done in 5 minutes to manage to record for 40 minutes, you still have to try so hard)

  • @Bubblebunz
    @Bubblebunz 7 месяцев назад

    how did you learn this

    • @MaestroShark
      @MaestroShark  7 месяцев назад

      Learn Verse? Months of just experimentation, and reading the verse api to figure out what I would need.
      Learn this? I already knew how UIs worked so all I needed to do was set one up and know how to count resources

  • @Strom_Rust
    @Strom_Rust 10 месяцев назад

    Amazing tutorial! Is there a way to contact you to ask a few questions?

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

      You can contact @MaestroShark on discord

  • @antho_-ph3es
    @antho_-ph3es 10 месяцев назад

    23:00

  • @jahshaka2000
    @jahshaka2000 11 месяцев назад

    very good video ! i wished that "get agent count" for score, eliminations. eliminated and other things was a thing or is it possible somehow? would make life so much easyer

    • @MaestroShark
      @MaestroShark  11 месяцев назад +1

      You can use a score manager to get player score. Eliminated/eliminations can be tracked with a tracker device

    • @jahshaka2000
      @jahshaka2000 11 месяцев назад

      WOW lol i have made triggers updating the hud ui must check that out! thank u maestro@@MaestroShark

    • @jahshaka2000
      @jahshaka2000 11 месяцев назад

    • @williamtocco904
      @williamtocco904 10 месяцев назад

      @@jahshaka2000 can you give me the code for the elimination tracker ?