Тёмный

Mobile Joystick Movement + Shoot in Unity 

Press Start
Подписаться 24 тыс.
Просмотров 36 тыс.
50% 1

How to shoot enemies in Unity on a touch device
SUBSCRIBE: bit.ly/2Js78lE
============
SUPPORT: / pressstartclub
In this video, we cover:
+1:00 - Tutorial Starts
+2:30 - Setting up Touch Phases
+3:40 - Check if the touch was on the left or right side
+4:30 - Convert touch position to world space
+7:20 - Setting up Unity Remote App
+7:40 - Move Object using joystick
+9:00 - Loading our projectile (bullet) prefab
+10:15 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL:
pressstart.vip/tutorials/2019...
UNITY REMOTE APP: docs.unity3d.com/Manual/Unity...
PREVIOUS BULLET VIDEO:
• Unity - Shooting Enemi...
MULTI TOUCH VIDEO:
• Unity - Multiple Touch...
MORE TUTORIALS:
pressstart.vip/unity-tutorials

Опубликовано:

 

14 мар 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@itay1213141
@itay1213141 5 лет назад
great tutorial, just like the last few of your tutorials i just watched. keep making good content dude
@pressstart6864
@pressstart6864 5 лет назад
Thanks for watching :) your support means a lot!
@NiclasGleesborg0
@NiclasGleesborg0 5 лет назад
Cool. Touch controls is something I've found hard to grasp.
@TripOptic123
@TripOptic123 4 года назад
Thank you very much this is so useful :)
@blog8564
@blog8564 4 месяца назад
thank you, good man
@brainy3429
@brainy3429 2 года назад
Looking for this kind of tutorial . No one tells how to manipulate joystick touch N other touch like fire in this vid . Thanks a lot!
@joaoteles2565
@joaoteles2565 5 лет назад
awsome video and channel. Good Luck
@twobits7310
@twobits7310 4 года назад
how to make a twin/Dual joystick on mobile, one for player movement and one for weapon rotation ?
@yzo954
@yzo954 4 года назад
hey what i have to do to make this same thing but instead of making the spaceship moving in a single direction i want to use another joystick to aim and shoot pls guide me on this
@saigirish7824
@saigirish7824 4 года назад
You are the best
@gameroche
@gameroche 4 года назад
thanks excellent tutorial
@pressstart6864
@pressstart6864 4 года назад
glad I could help!
@gigimcgregors6181
@gigimcgregors6181 5 лет назад
hey, is there a way to make a twin joystick like this one? none of the tutorials ive seen actually works well :(
@sourabhvijay5925
@sourabhvijay5925 4 года назад
can you make a first-person shooter controller like dead trigger 2 which moves and shoot?
@HB-wk6zj
@HB-wk6zj 2 года назад
But how can you use a joystick to move in a certain direction + shooting WITH another direction (in the case of a 3D game ?)
@LifePhath
@LifePhath 3 года назад
how can one follow up when you dont share the resources or explain how we can do those, is really not working for me
@emiratakandursun5472
@emiratakandursun5472 3 года назад
can you make a video about fire button which press auto aim attack
@paradox1093
@paradox1093 3 года назад
It's says ) expected at return function I've done exactly same code checked every single character
@ossiebodero3445
@ossiebodero3445 3 года назад
Can we also see the explosion script?
@smartandfunny6140
@smartandfunny6140 5 лет назад
Awesome! it works but i've noticed that when i touch the right side the player starts shaking a bit.. and if my left finger stayed on the screen without moving ..the player moves weirdly and slowly
@smartandfunny6140
@smartandfunny6140 5 лет назад
Solved this by using FixedUpdate to Move the Character instead of calling moveCharacter in Update()
@pressstart6864
@pressstart6864 5 лет назад
@@smartandfunny6140 Thank you!
@LowRezStudios
@LowRezStudios 4 года назад
@@smartandfunny6140 I'm not sure how to implement this into the code.
@JR-dq2ng
@JR-dq2ng 4 года назад
@@smartandfunny6140 Can you exlpain how you did this please?
@nemo9275
@nemo9275 3 года назад
my ship is going the other way please help
@Juan-rb5uv
@Juan-rb5uv 3 года назад
Puedes regalar el proyecto completo con codigo
@witneewitkeesTV
@witneewitkeesTV 2 года назад
Good day sir can i copy your bullet script? THANKS A LOT BOSS
@EnsignLovell
@EnsignLovell 4 года назад
Why only 2D? >.< I really want to adapt your script here for a 3D game but every time I try, as soon as I press the Joystick it goes to the bottom of the screen, no matter the direction I press it in. :( Edit: Also great tutorial, I learned a lot and this is good channel :D
@eremahi4081
@eremahi4081 2 года назад
are you found tutorial about 3D ?? show me plz
@GhostStories605
@GhostStories605 3 года назад
Why my player moving weirdly and slowly ?
@xzozx2073
@xzozx2073 5 лет назад
How to shoot many bullets in single touch
@funnyteddy3472
@funnyteddy3472 4 года назад
the player or the ship is lagging
@mrarne2749
@mrarne2749 4 года назад
no its not its only when using the editor. Try to make a build of the game and you will see that it wont lag.
@audacityfilmsproductions5334
@audacityfilmsproductions5334 3 года назад
Doesn't work in 3D, cool vid tho.
@perfectbite3479
@perfectbite3479 3 года назад
starting music is really very annoying please change it.
Далее
Unity - Shooting Enemies with Projectiles
7:19
Просмотров 36 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 697 тыс.
Unity3D/2D: Mobile Joystick Tutorial [NO PLUGINS]
10:17
Unity Movement [RigidBody vs Translate]
9:00
Просмотров 283 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 4 млн
I Paid Fiverr Game Developers to Make the Same Game
10:25
How to ACTUALLY get into Gamedev
14:01
Просмотров 706 тыс.
Can AI Code a Horror Game? Watch ChatGPT Try
8:06
Просмотров 1,1 млн
Coding Adventure: Portals
16:06
Просмотров 1,3 млн
Can AI Code Minecraft? Watch ChatGPT Try
8:06
Просмотров 1,2 млн