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"

How can I make button controls for Touch Interface? (not joystick)

Hello all! I want button controls for touch interface. Virtual joystick isn't my thing because contols are terrible. I have Carmageddon 1 on mobile and it's controls are impressive. I play it with button interface. So... I really searched answerhub, forum, google, youtube but I couldn't find any solution to this.

I want to control the vehicle on left of the screen and make it's roll movement on right. On PC, you control the vehicle with WASD and make it's roll movements with left, right or left,right mouse buttons. And it's really easy and fun.

I made an example image here. I want the controls like this.

alt text

Product Version: Not Selected
Tags:
more ▼

asked Dec 05 '14 at 04:43 PM in Blueprint Scripting

avatar image

Wanderer_eternal
39 3 6 9

avatar image shimozurdo Nov 22 '15 at 09:12 PM

Hello, did you found any method or something to do this?? :(

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

4 answers: sort voted first

Hi there! If anyone is still looking for a solution for this: In the interface - create a new member, set its size, thumb size and interaction size for the same amount. After that add ONLY the Image 2, leave the Image 1 blank. At the bottom You have the setting "Main Input Key", bind it for some gamepad button (this is usefull as the game will be ready to use a gamepad already).

After that the thumb of the joystick should be still in place and work like a button.

The only thing to do now is to add the gamepad input button you have chosen to the input action mappings.

Have fun!

more ▼

answered Mar 28 '17 at 10:06 AM

avatar image

NoisE89
103 2 6 14

avatar image randallelliott May 13 '17 at 06:50 PM

I'm looking for this answer...thank yo for this....one question what do you mean bind it? For some reason I can't get the button to execute when pressed....only if I drag it...I want to make a jump button..any ideas?

avatar image Evigmae Sep 02 '18 at 02:11 AM

His answer kinda doesn't work for the reason you're saying. Seems the default solution is to make the buttons on UMG. The buttons need to have "is Focusable" as false, as to not steal focus from the joystick though.

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

So, I see that I can achieve this not from controller inputs but from UMG. I watched HorusHeretic's UMG tutorials on youtube and also I looked about dozens of similar videos, answerhub questions etc. and I saw that they are all about menu items or similar.

I couldn't see any posts about binding input axis movements to UMG Widget buttons. Is it not possible to do that?

more ▼

answered Dec 06 '14 at 03:12 AM

avatar image

Wanderer_eternal
39 3 6 9

avatar image Roboticals Dec 22 '14 at 07:58 PM

I'm wondering the same thing sort of thing, and it sounds like it isn't currently possible. You can get onClick events for UMG buttons, but there is nothing that can tell you if the button is released or held down or anything. And they can't currently map directly to an input axis or key binding or anything. There is a kludgy workaround though (check link) that might work for what you are trying to do.

avatar image Wanderer_eternal Dec 23 '14 at 03:45 PM

Yeah. Unfortunately I too found out that UMG doesn't support direct input from axis controls. Maybe in future updates they will advance UMG into a better thing. But for now, mobile controls are very, VERY problematic in Unreal Engine.

avatar image The7thCrest Feb 01 '16 at 08:47 PM

Yea, crying shame. I've found myself also wanting this functionality. It would be very nice to have.

avatar image kleyten Sep 08 '15 at 10:33 PM

did you found any solution to this ? i have the same problem

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

I created a tutorial video for this on my channel tonight. It is still uploading, but keep an eye on my channel and it will be there soon.

Youtube.com/rushgames

Inside the widget on your button, use the onpressed and onreleased events to set variables to true and false. Then using those variables do an event tick inside the player character bp with a branch, and add movement input node. Set the scale to the speed of which you want the character to move (Example: 600). Enjoy!

Here is video link:

https://youtu.be/dF9qBr311uU

more ▼

answered Feb 20 '16 at 04:52 AM

avatar image

exrush
21 1 4

avatar image exrush Feb 20 '16 at 04:54 AM

And for rotation instead of add movement input...use control rotation.

avatar image The7thCrest Feb 27 '16 at 08:22 PM

Wow... thanks for that... don't know if it will tell me what I need to know, but I learned something new about the engine in less than 2:00. (Didn't know you could change folder color 0_0) EDIT: Thanks for the video. It made me realize that Epic has actually implemented OnPressed and OnReleased functionality already. For some reason I thought that this was still a pending feature request.

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

answered Jan 09 '17 at 06:34 PM

avatar image

Chewie11
1

(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