I am developing an endless runner game for Android. Currently the A and D keys are set up to turn 90 degrees in a desired direction when hitting a certain OnBeginOverlap box event.
I am having issues though when using the virtual joystick as my character does not turn but instead keeps running forward ( 90 degree turn event not triggered ).
Is there a way the virtual joystick can emulate the A and D keys to trigger this event?
Or is there a way that instead of using the A and D keys I can use the Gamepad Left Joystick - Left and Right to perform the 90 degree turn event in the desired direction?
Here is my A and D key setup
Here is my attempted Gamepad setup ( Incomplete )