Uploaded August 2018 | Updated September 2026, 2 weeks ago
In this tutorial I explain how to code a virtual joystick in Unity to be used for mobile or touch screen devices.
SUBSCRIBE: bit.ly/2Js78lE
============
In this video you will learn:
0:52 - Create a new C# script
1:08 - Create a moveCharacter function
2:50 - Move with arrow keys or physical joystick
3:38 - How to calculate direction
5:08 - Mouse Position - Screen View vs. World View
7:50 - Setup a Visual Joystick
9:45 - Final Product
COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/06/22/39/mobile-joystick-in-unity.html
MORE TUTORIALS
https://pressstart.vip/unity-tutorials
In this tutorial I explain how to code a virtual joystick in Unity to be used for mobile or touch screen devices.
SUBSCRIBE: bit.ly/2Js78lE
============
In this video you will learn:
0:52 - Create a new C# script
1:08 - Create a moveCharacter function
2:50 - Move with arrow keys or physical joystick
3:38 - How to calculate direction
5:08 - Mouse Position - Screen View vs. World View
7:50 - Setup a Visual Joystick
9:45 - Final Product
COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/06/22/39/mobile-joystick-in-unity.html
MORE TUTORIALS
https://pressstart.vip/unity-tutorials
![Spawning Objects in Unity [Using Instantiate]
In this tutorial I explain how to write a C# script that will allow you to spawn obstacles onto your scene using prefabs and instantiate.
SUBSCRIBE: https://bit.ly/2Js78lE
In this video I will show you:
1:00 Adding a CircleCollider2D, Rigidbody2D
1:37 Adding a script to move the game objects
3:40 Removing objects from the scene once they leave the screen
5:00 Creating a prefab
5:40 Adding a script to spawn the objects
6:30 Using instantiate
8:25 Using Coroutines and IENumerator
COPY & PASTE SOURCE CODE:
https://pressstart.vip/tutorials/2018/09/25/58/spawning-obstacles.html
MOBILE JOYSTICK VIDEO:
https://pressstart.vip/tutorials/2018/06/22/39/mobile-joystick-in-unity.html
SCREEN BOUNDARIES CODE:
https://pressstart.vip/tutorials/2018/06/28/41/keep-object-in-bounds.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials Spawning Objects in Unity [Using Instantiate]](https://i.ytimg.com/vi/E7gmylDS1C4/mqdefault.jpg)

![2D Character Animation in Unity [pt 1 of 4]
I explain how to draw, animate and setup transitions for your 2D character in Unity.
SUBSCRIBE: https://bit.ly/2Js78lE
SUPPORT: https://www.patreon.com/pressstartclub
In this video, we cover:
0:35 - How to find spritesheets to reference when drawing
1:30 - Using the right art program to use
2:00 - 3 things to know about how to setup your document
3:38 - Using Aseprite to draw my animations
4:11 - Importing my spritesheet into Unity
4:35 - Setting up the files to use multiple sprites in one file
6:20 - Creating an animation clip in Unity
7:18 - Using the Animator panel in Unity to setup parameters
8:00 - Setting the value for Animator parameters in C#
8:45 - Using the Animator panel to setup transitions between animations.
ASEPRITE DOWNLOAD: https://www.aseprite.org/
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials 2D Character Animation in Unity [pt 1 of 4]](https://i.ytimg.com/vi/Gqel6Ed4LpY/mqdefault.jpg)







![Unity - How to Detect Collision in C# [Using Colliders]
In this tutorial we discuss adding colliders on our objects so that we can detect collision within our script.
SUBSCRIBE: https://bit.ly/2Js78lE
In this video, you will learn:
0:55 - Choosing the right collider for your environment
1:05 - How a collider works
1:30 - 2D and 3D colliders to use
2:05 - Adding a Circle Collider 2D
3:35 - Adding a Box Collider 2D
4:19 - How to use isTrigger
4:45 - Detecting Collision in C#
6:10 - Using Instantiate to load an explosion
7:00 - Destroy on Collision
COPY & PASTE CODE FROM THIS TUTORIAL:
https://pressstart.vip/tutorials/2018/11/1/75/collision-detection.html
PREVIOUS VIDEOS:
Movement: https://www.youtube.com/watch?v=BxO59UyXPLc
Obstacles: https://www.youtube.com/watch?v=E7gmylDS1C4
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials
WEEKLY DEVELOPER STORIES AND TIPS:
https://pressstart.vip/newsletter Unity - How to Detect Collision in C# [Using Colliders]](https://i.ytimg.com/vi/ZoZcBgRR9ns/mqdefault.jpg)