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"

Add two touch button each one half of the screen.

I am trying to setup my interface controller for a runner mobile game. I just want to add two buttons each one has two take half of the screen. When I Touch the left one the player goes left and the right one the player goes right. When I click both in the same time the player will jump. It seems a easy task to solve however, I spent all day trying to achieve this without success. I have looked all over internet and I find and tried some solutions but they don't work.

So far I have tried using:

Touch Interface Setup

Managed to get two buttons (like the picture below) assigned left and right movement. Only Left works , if I touch the right to the player goes left. Another problem here is that I cannot get the two buttons to resize depending of screen size. I have tried to cast the touch interface and call the variables but I cannot find a way to do this.


I have tried inside the player blueprint to get the half of the screen. I have managed to detect right and left and when I attach the to "Add Movement Input" I have to keep touch to turn instead of holding the direction.

What I am missing here? Someone can explain how I can achieve this please?

alt text alt text alt text

Product Version: UE 4.21
more ▼

asked Nov 17 '18 at 01:15 AM in Blueprint Scripting

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Managed to solve.

alt text

more ▼

answered Nov 17 '18 at 02:46 PM

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left
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