x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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?

Product Version: Not Selected
Tags:
more ▼

asked Nov 02 '14 at 08:34 PM in Blueprint Scripting

avatar image

TM317
76 9 12 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Here's how you do it :

http://puu.sh/cBmk0/41307ddf8f.png

Note that you'll need to do that on the player controller :)

Take care David

more ▼

answered Nov 03 '14 at 06:16 AM

avatar image

bigzer
620 40 59 80

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

Good luck!

more ▼

answered Nov 03 '14 at 03:32 AM

avatar image

Sephern
117 4 8 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question