Creating a message
Hi, sorry for the generic answer but I still don't know how to explain it. I want to create a message on the screen, like when someone tells you something during the gameplay. (I uploaded two photos as examples) I don't think that the widgets blueprint are the best feature to do it. So, how can I make a pop-up message? I prefer using Blueprints, but in c++ is still good. Thanks in advance.
asked Apr 11 '18 at 08:51 PM in Using UE4
When you make UI or HUB for your game you should function that display message from which you can call from anywhere (you could forward function in to GameMode or PlayerController for simplicity). If you use UMG, such fuction would create text widget and animate if needed when function is called and destroy widget when it's done animating, you can also make pernament text widget queue system which will change text of text widget and animated, switch to next text from queue and animate it again, do nothing when queue will be emptied.
For this perticial example you gave (images) in you would need to create whole conversation system which most likely involves creation of conversation script asset on your own which can contain and edit huge amount of text you gonna have, since in stack UE4 there no tool that allows you to do that in comftible way.. not to mention display it in sequance you don't want to code this over and over again right for each conversation right? In marketplace there ready solutions for that so you can look it up but they are not free. But if you don't plan to make huge amount of text i think simple solution i mention above might do the job.
UMG Widgets are fine for this; you just have to learn the trick of translating world coordinates to UMG coordinates to make the box appear over the character's head.
The second screenshot doesn't even require that because the dialog is expressed with a pop up artwork of the character who is currently speaking, so no special positioning is needed to indicate who the speaker is.
answered Apr 12 '18 at 03:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here