Stop character from moving when clicking widget
I have a top down game and I am creating a widget that the player can click on to do various things. Right now if the player clicks on anything(for example the background of the widget, or an image) the character starts moving to that location. How can I disable the character movement while hovering over the widget?
asked Nov 02 '14 at 08:34 PM in Blueprint Scripting
Assuming you're using blueprint, you can get a true/false from the node "Is Hovered" and you could use an Event Tick that Branch(es) "Is Hovered," then Branch again on True and False for "Is Game Paused," and if both are true, do nothing; if it is hovering and game is not paused, "Set Game Paused" to true; if it is not hovering and game is not paused, do nothing; if it is not hovering and game is paused, "Set Game Paused" to false. This should solve your problem.
answered Nov 03 '14 at 03:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here