Hide HUD widget after X seconds
I made a HUD that displays the Item that you just picked up.
It works, but I want the widget to disappear after X seconds and also, I want it not to overlaps. Yes because if I take 2 items, the name of those overlaps each other.
THIS IS THE BLUEPRINT WHEN THE PICKUP IS TAKEN
THIS IS THE WIDGET BLUEPRINT
How can I solve this problem?
Thanks in advance!
PLEASE NOTE! I know that to delete a widget I've to use Remove From Parent. The problem is that I want the widget to disappear after 2 seconds AND if I use the Delay node, then my Item will spawn with 2 seconds of delay!
you can simply add animation to your widget text.. move up health text and decrease opacity and you avoid 2 widget collision. Also you can take one main widget and don't destroy it and when you will pick up second pickup just update its text.
answered Oct 26 '15 at 07:07 PM
How are you doing the spawn of your item?
If you just put that behind it can't you just change the order or use a sequence?
For the none overlap you need to check how many of those widgets are on your screen right now and move it further to another place. Or do a type of event log. That honestly is a lot more complex than a simple "yea just add that node".
How should they not overlap? Where are they right now? That's a quite tall order and a significant element of your game.
answered Oct 26 '15 at 06:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here