I have a few buttons that are drawn as images, basically a person holding the button / sign infront.
On mouse hover, the image changes to the person holding the button sign above his head.
But how can I get the text to move up on hover as well?
So when you hover over the image/button the text moves X amount up so it fits the sign he is holding?
I can’t for the life of me figure it out after googling and youtubing all day and i’m not that savy with coding or blueprints mostly relying on tutorials.
OnMouseHover(event): Either move up the position of both Button & Text(by setting the position of both variables) or only move up the position of the Overlay
*and a boolean IsAlreadyMovedUp to prevent recalling the same execution
Thanks, I’ll try my best but I’m such a newbie at coding and blueprints
So I make a custom event node called OnMouseHover?
I can’t move the button as it’s 1 image of a person holding the sign and another image on hovered to the person with the sign above head. But the entire image is the button so the player doesn’t have to follow the sign to click the button, even the person is the button.
I only want to move the text up on hover and back down once the mouse cursor is not there.
And what kind of node would I need to move a text up and down in the widget menu? I assume it’s something to move it in 2D space only on Y axis?
Sorry, i’m just trying to learn and move further with my little game and UI
This works to move the text up when hovering over the button, so the text moves up to allign with the sign the person is holding over his head. But I don’t know if it’s a good way of doing it and I don’t know how to get it to go back down to the original position again