Joystick for my game?
I followed a quick video on how to create a joystick for a mobile game. His game was rolling a boll, where mine is driving a tank. I copied his code to see how to would work, and my tank isn't driving like it should be. Could you fix my joystick code to get it to make it drive forward/reverse when you push the joystick up/down and turn left/right when the joystick is pushed left/right?
Here is the code for the PlayerMovement. Here is the code for the Joystick.
Thanks in advance!
What mobile are you using? and what joystick? I'll do it for £30.
I'm am using iOS. And it's a joystick I created. I'll pass. Everything just works except for it going on the wrong axis(s), but I seem to have a $$anonymous$$or fix. I couldn't see paying $42ish to fix a few lines. Thank's though.
I don't have iOS and i don't blame ya. I thought you were asking someone to do the whole thing for you. $$anonymous$$eep at it, you'll get it working sooner or later
$$anonymous$$ap the joystick vector on a Vector2 then transfer to the x and z field of a Vector3 for use with the tank. Dont use bools or any nonsense like that.
Your answer
Follow this Question
Related Questions
How can i make my player look at the same direction where its moving? [JOYSTICK ANDROID] 0 Answers
Using the free touchscreen Joystick my code cant detect the joystick 0 Answers
Joystick input recognized multiple times 0 Answers
On-screen joystick snaps to lower-left on first press c# 1 Answer
Rotate a character with joystick 0 Answers