How To Add Floating Joystick Using The New Input System With Animator Controller

  Рет қаралды 8,556

UnityToBrain

UnityToBrain

Жыл бұрын

How To Add Floating Joystick Using The New Input System.
Hello and welcome to this tutorial! In this video, we will explore the exciting topic of implementing touch movement joystick (also known as a floating joystick) to control your player on mobile devices. Not only that, but we will also learn how to modify the player's behavior based on touch input values. And that's not all! We'll even delve into connecting the joystick with the blend tree of the animator controller, which will give your player a sense of lively movement. So, sit back, relax, and get ready to learn some valuable skills on how to enhance your mobile game!
Credit: I learned the coding part and Inspired by this video from the ‪@LlamAcademy‬, if you want to get in a deep understanding of how the scripts work please watch his awesome tutorial :
• Touch Movement Joystic...
but this tutorial focus on binding Joystick to animation controller
NavMesh
github.com/Unity-Technologies...
GitHub:
github.com/UnityToBrain
Discord:
/ discord
follow UnityToBrain on Instagram
/ unitytobrain
Music:
KZbin Audio Library
#gamedevelopment

Пікірлер: 23
@LlamAcademy
@LlamAcademy Жыл бұрын
Thanks for the shout out 😊! The result you get here looks really good 👍
@unitytobrain
@unitytobrain Жыл бұрын
Thank you very much! Your tutorial was very helpful. 🙌
@mucahittir
@mucahittir Жыл бұрын
thank you, you just saved my whole day 🤟
@Nick-rq4gy
@Nick-rq4gy Жыл бұрын
Thank you so much for this helps me make my game.
@Yin-st3if
@Yin-st3if Жыл бұрын
Amazing!!
@aleemehsan761
@aleemehsan761 Жыл бұрын
Just was searching for the Joystick implementation using the New Input System and you cleared it to me. as I always say that "YOU are a LIFE JACKET for DEVELOPERS in the OCEAN Of UNITY" .
@aleemehsan761
@aleemehsan761 Жыл бұрын
@@unitytobrain Can you make a tutorial on Bridge Runner. Please...?
@TheDurpaDurpa
@TheDurpaDurpa Жыл бұрын
Great tutorial! Quick question. I am currently making a hyper casual prototype and this mechanic is exactly what I am looking for. However, in most hyper casual games, while you have the same type of steering using your finger you very rarely actually see the joystick. I have been trying to get into the new input system but all tutorials use a visible joystick. Is there a way to get the same movement functionality but removing or hiding the sprite joystick? Could you just remove everything related to the actual joystick UI and still have it working as shown. As a last desperate attempt maybe I should just follow all the steps and have it set as hidden in the inspector. If the joystick is floating then it shouldent really matter. But that feels overcomplicated.
@shootxnow132
@shootxnow132 9 ай бұрын
just hit the alpha zero
@arabiannights7183
@arabiannights7183 8 ай бұрын
Not clear how you setup blend tree for crouch walking
@Nick-rq4gy
@Nick-rq4gy Жыл бұрын
Dear UnityToBrain. I downloaded the Unity Starter Assets which has a FPS Controller but when you play on the smartphone the UI sprites to move forward, and backward, and to look around are fixed in place on the screen. I noticed from Playing Call of Duty Mobile that the move sprite, and the look pad sprite appear anywhere on the screen depending where you place your finger on the screen, on your smartphone. Can you adjust the settings on the FPS Controller in the Inspector panel to make the sprites appear when you place your finger on the screen instead of the move and look sprites being fixed in one place on the screen, like a floating Joystick If not, is this something that has to be coded in C# for the sprites to appear on the screen when the player presses their finger on the touchscreen on their smartphones, so basically, I am trying to make a floating Joystick. I was watching the KZbin tutorial on the floating joystick. The guy in the tutorial made his own move joystick, and look joystick, then he wrote some C# code to make them work. Then he created UI Image and split the screen and put the other look joystick on the other half of the screen and then added another script to it. My Unity Starter Assets FPS Controller already has the move and look joysticks made, so do I need to start by splitting the screen in 2 with the UI Image? I think the guy's code is intertwined with his move and look joysticks he made from scratch so will it work with the Unity Starter Assets move and look joysticks seeing as they are already made? kzbin.info/www/bejne/mnLHip96q6p7i7s found this for the dual touch controls kzbin.info/www/bejne/ioHdgJqDm9R2fbs in this KZbin video a guy called Hoosan talks about what I am trying to do at 3:55 in the KZbin video, he talks about Add Event to make the sprites move to a specific area on the screen when the player presses the touchscreen. I have been on this problem a loooong time and I am worried ill never be able to do it, and get my game finished. There are not many KZbin videos on this topic. Can you make a turorial for this or message me on discord and walk me through it, or tell me the process how to do it here in KZbin?
@Nick-rq4gy
@Nick-rq4gy Жыл бұрын
@@unitytobrain what is your discord name? And ill message you there. Ill make you props for your game, and share ideas and help
@wahebplays
@wahebplays 10 ай бұрын
do one for TPS camera look with mobile
@nabilabenhssein9175
@nabilabenhssein9175 Жыл бұрын
How to make character movements in joystick like pubg I mean not rotating but character will go from sides
@spiddymax
@spiddymax Жыл бұрын
The type or namespace name 'joyStick' could not be found (are you missing a using directive or an assembly reference?)--I am getting this error.Can anyone help me in this?
@unitytobrain
@unitytobrain Жыл бұрын
I will check the project to fix it
@seanmax8762
@seanmax8762 Жыл бұрын
How did you make the animations work without setting the character's rig to humanoid?
@seanmax8762
@seanmax8762 Жыл бұрын
@@unitytobrain I tried to set up the animations just like the video, but the animations will end up moving the player away even if root motion is disabled. My guess is that it will depend on the animation. Thanks for the reply anyways!
@lornemalvo5664
@lornemalvo5664 Жыл бұрын
no problem on mobile but not working in unity editor
@unitytobrain
@unitytobrain Жыл бұрын
Go to Window, Analysis, Input Debug. In the Options dropdown, check Simulate Touch Input From Mouse or Pen
@victor.novorski
@victor.novorski Жыл бұрын
Bruh I don't want it to turn but I want it to control the animator controller instead. How do I do it?
@unitytobrain
@unitytobrain Жыл бұрын
Animator component will control with parameters(will define in the animator controller window), so you need to access them from script
@victor.novorski
@victor.novorski Жыл бұрын
@@unitytobrain Ok done. I've also set up Input methods to be GetAxis with respective parameters. What next?
Easy Joystick for Mobile with Input System in Unity
7:41
samyam
Рет қаралды 139 М.
Заметили?
00:11
Double Bubble
Рет қаралды 3,5 МЛН
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 57 МЛН
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 148 М.
SMOOTH FIRST PERSON MOVEMENT in Unity
7:01
Rytech
Рет қаралды 17 М.
FPS Touch Controls - UNITY 2021 Tutorial
14:12
GDTitans
Рет қаралды 64 М.
Заметили?
00:11
Double Bubble
Рет қаралды 3,5 МЛН