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.
asked Dec 05 '14 at 04:43 PM in Blueprint Scripting
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.
answered Mar 28 '17 at 10:06 AM
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?
answered Dec 06 '14 at 03:12 AM
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.
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://docs.unrealengine.com/latest/INT/Gameplay/Input/ Scroll down, this might help u.
answered Jan 09 '17 at 06:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here