How to make a Floating Damage/Points Popup Text in Unity

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

КОМЕНТАРІ • 79

  • @peter11508
    @peter11508 4 роки тому +12

    I love these tutorials, they’re very clear and easy to follow. Keep up the good work!

    • @gamedevel22
      @gamedevel22  4 роки тому

      Thank you so much! Hearing that really keeps me motivated

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

    This has been incredibly helpful, thank you!! 🔥I was looking for exactly this, a way to have a little pop-up point notification/animation above the player and no other video that I found covered this!

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

    You should do more tutos like this, as you´re clear and concise. Subscribed

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

    Just what I was looking for.

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

    Best straight forward way to do popup damage, thx.

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

      Thanks for the feedback and support! I recently thought about making a new Version for popup damage Text.

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

      @@gamedevel22 I mean animation is all you need)) And you can add TextMeshPro.

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

      True but you can play more with it for example how to have different color for critical hits, different font, random range for damage and more

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

    Thanks, bro it's very clear, continue .

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      I surely will with that support of yours.

    • @aaliyahvanlucel4622
      @aaliyahvanlucel4622 4 роки тому

      @@gamedevel22 Hi, I want To make Text pop up and just fade in his position. But when I try to reduce the color opacity that affects all animation time. any Solution Savuu ?

  • @alejomartinez1212
    @alejomartinez1212 4 роки тому +1

    thanks for the tutorial bro, it has been very useful for me

    • @gamedevel22
      @gamedevel22  4 роки тому

      This is great to hear thank you.

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

    I never knew you could call in a float to act as a timer while using the destroy function. This whole time I've been invoking destroy 🤣🤣

    • @gamedevel22
      @gamedevel22  4 роки тому

      Hehe I was shocked as well when I learned about it! It is really helpful🤗

  • @antonymorsas
    @antonymorsas 4 роки тому +1

    perfect, just what i need

    • @gamedevel22
      @gamedevel22  4 роки тому

      Hope you get through the video with no Problems!

  • @mectoystv
    @mectoystv 4 роки тому +3

    I would like a tutorial, to know how you have adapted a 2d game on different cell phone screen sizes. For me it is a headache. Your tutorial is wonderful and simple.

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

      Thanks a lot for liking my tutorial style! About the different screens I wanted to start a mobile series soon where this will also be included! Till then you may find the solution on our Discord Server!😁

    • @lvlGhostlylvl
      @lvlGhostlylvl 4 роки тому +1

      This is super easy to achieve. Just scale your canvas size with the size of the screen rather then using a constant pixel size.

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

    Bro please help.... I have a problemi that if i try to kill the monster with a long time of wait after the game is started it wont come, but if i kill the monster faster it will show

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

      Please help me to fix this

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

      Ok I do it, i had to delete the first floating thing

  • @dotaportalvideo
    @dotaportalvideo 4 роки тому +1

    Very helpful video and to the point.

  • @Alicia0Cramel
    @Alicia0Cramel 4 роки тому +1

    Thank you. Amazing tutorial. I did struggle a lot but that's because I didn't root the instantiation so it appears in random locations. Took some hours to fix. Anyway, thank you.

    • @gamedevel22
      @gamedevel22  4 роки тому

      Glad you could eventually fix it! Thank you 😊

  • @MarkTheMadMan
    @MarkTheMadMan 4 роки тому +3

    I cant get the text to render in front of my other objects (tiles in a tilemap, or a background image). It is always behind, ive tried changing the sorting layer with no luck

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      Are you using the simple Text mesh or text mesh pro? Where exactly are you changing the sorting layer? Try adding a new sorting layer and name it Texts..assign it to every object you want

    • @MarkTheMadMan
      @MarkTheMadMan 4 роки тому +1

      @@gamedevel22 I was using the simple text like you did. I have multiple tilemap layers in my game and multiple layers for enemies and player etc. I even created a new layer for the text and put it in front of everything else but the text always appears behind everything else

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

      Well I highly suggest you to join our Discord Server where we can solve the Problem..you can send there Screenshots and I am sure it will be fixed!discord.gg/BApYP2T

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

      I faced the same problem too. My solution is, right click to create a new canvas and text from UI, without using the Text Mesh in the tutorial.
      Creating a canvas can tweak "Order in Layer", set the number to 999 or whatever great number,
      then follow everything SAVVU teach in his tutorial. It works. and Thanks to SAVVU for your great tutorial.

    • @lookoutherecomestom1874
      @lookoutherecomestom1874 4 роки тому

      @@gamedevel22 Did you and Markyboy28 end up deciding that using a UI>Text is a better idea than using a Mesh>Text Mesh? I'm having the same issue Markyboy28 was having, in that my TextMesh is always rendering behind other game objects.

  • @CLOUDCs22
    @CLOUDCs22 4 роки тому +3

    Hey, loved the tutorial, but how do i do this with damage? i know i just have to call the damage parameter that i have made for attacking, but i don't know how to

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

      sorry for being dumb, im just very new and wanted to challenge myself on making a game with a very small amount of coding experience

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      Hey thanks! Well you have to decide if you want to assign the Script to your character or the enemies. It is easier to have it exactly there where you handle the life of the Enemy. So when you substract the damage from the life you could also use this effect to show the value.

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      If you want feel free to join our Discord Server with other UA-camrs and Developers to Continue the chat! discordapp.com/invite/BApYP2T

  • @Slagatoras
    @Slagatoras 4 роки тому

    in my case i have the center of the sprite to be bottom left. how can i make the text go over it??

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

    Afternoon GameDevel. How to make the player when attacking the enemy will vibrate the screen? Is it Camera Shake? I am a newbie please help me. Thank you very much and look forward to hearing from you soon !!!

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

    It would be great if you made a tutorial for a Player get hit knocked back effect. Enemy collides with player or player jumps on player and an effect where damage is taken and force is added with gravity slightly knocking the player backwards stunned for a second

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

    Thanks for these great tutorials! Quick question (ok if there's no quick answer). When I instantiate my floating text it gets lost behind random tree objects that I instantiate when the scene loads. Without a text sorting layer, is there a way to push the text in front? I appreciate you!

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

      When you instantiate something you can choose to make it a child of another gameobject, and if that gameobject is last in the hierarchy of canvas elements then those elements would appear on top of everything else. Could be worth trying!

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

      @@MrValiantrobe I'll look into that :] Thanks for the reply.

  • @beri4138
    @beri4138 4 роки тому +3

    I can't see the text in scene view. I only see the orange outline when I select it but the text itself is not visible in scene view and is completely invisible in game. Edit: The text does render, but BEHIND the scene! I can't change it no matter what I do. Layers do nothing!

    • @gamedevel22
      @gamedevel22  4 роки тому

      Have you tried all layering orders? Or even just the z value?

    • @beri4138
      @beri4138 4 роки тому +1

      @@gamedevel22 Yes, I did but it didn't change anything. I ended up switching from Text Mesh to Text Mesh Pro, which doesn't give me this strange problem.

    • @beri4138
      @beri4138 4 роки тому

      @@gamedevel22 Great video btw

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      Well done! Text mesh pro is always a better option when using Text 😁

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

    ty bro

  • @Bloop42106
    @Bloop42106 4 роки тому +1

    My animation starts at Y level 0 so the actual thing when I click starts at Y level zero, also what do I link the destroy script to? I tried the parent and the child and both permanently destroy

    • @Bloop42106
      @Bloop42106 4 роки тому +1

      Nevermind, I got it to work, I was doing something wonky in my prefab, Great tutorial. All the other ones I found were 30 minutes long and did not work

    • @gamedevel22
      @gamedevel22  4 роки тому

      Thanks for the kind words and it's awesome that you could solve the Problem! 😁

  • @keremaslan1988
    @keremaslan1988 4 роки тому +1

    if kill my enemies when i am too close to them score popup doesnt show idk why

    • @gamedevel22
      @gamedevel22  4 роки тому +1

      Maybe it is rendered behind your character?

    • @keremaslan1988
      @keremaslan1988 4 роки тому

      @@gamedevel22 i mean my character isnt there anymore it doesnt show up anyway. But great video thank you

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

    How to make text visible on screen without canvas? Mines not visible at all T_T

    • @gamedevel22
      @gamedevel22  3 роки тому

      It's actually without using a canvas. Make sure to check if you assigned the right sorting layer and are also on the right z Position so that your camera can see the Text

  • @giorgoschatziioannidis5135
    @giorgoschatziioannidis5135 4 роки тому +1

    Awesome tutorial. I have a little problem making it work on Android. The text does not move up despite the fact that i have set the position.y to increase in the animation. It works for pc.

    • @gamedevel22
      @gamedevel22  4 роки тому

      Did you use the empty parent GameObject and animated the child that has the Text Component as in the video?

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

    Thanks Bro

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

    Well, it worked until i started instantiating the enemies from prefabs instead of the one I had in the scene...

    • @gamedevel22
      @gamedevel22  3 роки тому

      I spawn them from prefabs as well. You can just call the Script from whatever Enemy you are spawning

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

      @@gamedevel22 Got it working, thanks for the reply!

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

    Thanks

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

    not working for 2d

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

    thanks

  • @asdffa2726
    @asdffa2726 4 роки тому

    Bro the animation has locked my points in one place. Anyway to fix this?

    • @asdffa2726
      @asdffa2726 4 роки тому +1

      Oh my bad, I see it now. Thanks for the clear video!

    • @gamedevel22
      @gamedevel22  4 роки тому

      Glad it was easy to follow along 😀

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

    thbaks

    • @gamedevel22
      @gamedevel22  3 роки тому

      Thank you so much for the support!

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

    You really need to improve your video quality, this was too blury to follow. Shame, sounds like good tutorial

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

      Try changing your quality settings while playing the video! It is available in HD! Thanks for watching 😁

  • @newworldstream1259
    @newworldstream1259 4 роки тому +1

    Thanks