How to setup touch input controls

Hi. I am making a top down Shoot Em Up mobile game where the player is able to move in 2d using the touch screen.
Meaning that the player will be able to move his pawn left/right/up/down using his finger, and not a virtual joystick.
I’ve looked for a tutorial or details instructions on how to set this up and failed to find any.

Please help me I’m losing my mind :slight_smile:

Blueprint or C++?

Blueprint

First of all try removing the touch interface


The reason you are seeing joysticks is the default touch interface

Im done that, My issue is not with the virtual joystick. My question is how do I move my pawn in 2d (x/y) using my finger. Just like you see in all Shmup games where you control a ship

Use Widget buttons for Movement(Like Up button to move Player Up and vice versa) and

Check the ‘Use Mouse for Touch’ to be able to interact with widget buttons in Touch Screen Device. It is Present in Input tab In Project Settings

2 Likes

Hi. First of all thank you for spending your time and answering and even more adding screenshots. Good intentions are hard to come by. But I don’t think you understand my question. I don’t want to move with button widget, I want the game to track the finger on screen and move accordinly. Ive tried using the get location by visible channel but the pawn sticks to my finger and doesn’t move in a fluid way. If you want an example of what I’m trying to achieve, download the “wing fighter” game (for android/iphone) and the way you control the pawn in the game is what I am trying to achieve. It’s quite basic and it drives me nuts I can’t find the answer

Reviving this in case anyone comes back around with a similar question. I found this YouTube video explaining how to use blueprints to move the camera using touch controls (no buttons). Using this as a guide, I think you could easily configure it to move the character instead:

Hope this helps anyone who comes by here looking.