Press StartIn this tutorial I explain how to write a C# script that will allow you to pinch to zoom and pan around the screen for a mobile or touch screen device. SUBSCRIBE: bit.ly/2Js78lE ============ In this video I will show you:
1:00 How to build a script to pan around the screen 3:07 How to zoom using the mouse's scroll wheel 5:13 How to zoom using the pinch technique
Pinch to Zoom and Panning on Mobile in UnityPress Start2018-08-27 | In this tutorial I explain how to write a C# script that will allow you to pinch to zoom and pan around the screen for a mobile or touch screen device. SUBSCRIBE: bit.ly/2Js78lE ============ In this video I will show you:
1:00 How to build a script to pan around the screen 3:07 How to zoom using the mouse's scroll wheel 5:13 How to zoom using the pinch technique
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsMario Style Camera Follow TutorialPress Start2019-11-29 | In this video I show you how to setup a camera to follow your character like Super Mario World. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:40 - Setting up the scene 1:05 - Explaining how a Mario Camera works 1:42 - Calculating Camera Threshold Boundaries 2:30 - Subtracting by our FollowOffset 3:05 - Drawing Gizmos to outline our threshold box 4:05 - Calculating the distance between our character and the center of the camera 5:35 - Defining the new position for the camera 7:10 - Use Vector3.MoveTowards to move our camera 8:10 - Using RigidBody velocity for camera speed 9:20 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/11/29/105/mario-2d-camera.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsA Perfect Jump in Unity - A Complete GuidePress Start2019-10-15 | In this video we show you how to setup perfect Mario-like jumping in Unity. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:40 - Using a Ground Layer to detect if player is touching the ground 1:23 - Understanding How RayCasts work 2:15 - Applying a Physics2D.Raycast to check for Ground Collision 3:16 - Testing and Tweaking Ground Collision 3:55 - Using Gizmos.DrawLine 5:10 - Applying a vertical force for jump 6:25 - Adding Input Control 7:25 - Explaining Fall Multiplier 8:00 - Modifying Gravity and Physics 9:30 - Testing out our perfect jump 10:00 - Button Delay 10:45 - Adding a Jump Delay 11:50 - Adding RayCasts to both sides of our collider 13:20 - Setting up a Jump Squeeze Animation 14:55 - Applying the Jump Squeeze for landing 15:42 - Falling Animation 16:26 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/10/15/104/character-jumping.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsSuper Mario - Running Tutorial in UnityPress Start2019-10-01 | In this video to cover running in a 2D environment for Platformer games. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:40 - Adding a RigidBody2D and C# Script 1:24 - Defining Controller Input in C# 2:40 - Moving our Character with RigidBody2D.AddForce 3:35 - Adding Animation States to our Character 4:00 - Setting Up Animator Parameters in C# 5:20 - Flipping our Sprite in the Direction we are running 6:50 - Adding EdgeCollider2D 7:50 - Limiting Velocity with Max Speed 9:13 - Using Linear Drag to Stop our Character from running 10:30 - Changing Directions 11:11 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/10/1/103/character-running-and-movement.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials2D Character Animation in Unity [pt 1 of 4]Press Start2019-09-15 | I explain how to draw, animate and setup transitions for your 2D character in Unity. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: 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.
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsDust Effect when Running & Jumping in Unity [Particle Effect]Press Start2019-09-01 | In this video we re-create the dust trail effect from games like Super Mario World and Celeste SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/09/1/101/dust-trail-effect.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials
TIMESTAMPS: 0:30 - Adding Particle System 1:30 - Setting the position and scale of the particle system 2:35 - Setting the Color and Speed of the Particle System 3:15 - Removing the loop and pressing Play during through our C# script 4:28 - Duration, Emission Rate, Lifetime and Simulation Space 5:24 - Finished ProductSuper Mario Maker 2 - How to Recreate the Key Door in UnityPress Start2019-08-15 | In this video I show you how to recreate the key follow and key door effects from the game Super Mario Maker 2 SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:25 - Current Scene Setup 1:00 - Setting up the Key Object 1:30 - Installing a Spring Joint 2D component 3:35 - Creating a script for our Key Follow Object 5:00 - Setting up a backpack for our Character 5:30 - Connecting our Spring Joint 2D to our player via C# script 6:30 - Setting up our Doors in the scene 7:00 - Creating a script for our Door Teleportation 9:00 - Adjusting Door script to wait for release of "Up" Key 10:10 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/08/15/100/mario-key-door-in-unity.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - How To Contain RigidBodies Inside 2D CollidersPress Start2019-08-01 | In this video I show you how to hack any 2D collider to allow it to contain objects with RigidBodies.
In this video, we cover: 0:00 - Explaining the Problem 1:20 - Theorizing a Solution 2:11 - Testing The Theory 3:45 - The Final Code Used
DOWNLOAD THIS RESOURCE: https://pressstart.vip/resources
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/08/1/99/rigidbodies-inside-colliders.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - Enemy Follows Player [Beginner Tutorial]Press Start2019-07-15 | In this video I show you how to create enemy AI that follows your player around the screen. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:12 - Downloading and importing assets from the asset store 0:30 - Animating and creating our characters 1:10 - Creating a C# script for our Follow Enemy AI script 1:40 - Calculating the direction our player is in real time 2:20 - Adding a RigidBody2D to rotate our enemy to face our player 3:20 - Calculating the rotation in degrees to rotate our enemy 4:20 - Moving our enemy to chase the player object 6:00 - Final Product 6:15 - Tutorial Challenge
LEARN HOW TO MAKE GAMES LIKE THIS: https://pressstart.vip/unity-tutorialsUnity - How to Keep ScorePress Start2019-06-16 | In this video I am going to show you how to keep track of a players score by showing you how to make a basic game in Unity. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:55 - Adding Colliders and RigidBodies to our objects 1:48 - Downloading resources from PressStart: https://pressstart.vip/resources 2:15 - Creating a C# script 2:40 - Creating a trigger collider 3:15 - OnTriggerEnter2D 4:10 - Creating a UI text element 4:25 - Importing a Font from Google Fonts 5:15 - Modifying the UI Text in C# 6:00 - Setting up a Game Over Screen 6:40 - Finished Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/06/15/97/how-to-keep-score-in-unity.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials
#unity #gamedevUnity - Creating a Level Select Screen in C#Press Start2019-06-01 | In this video I am going to show you how to create a level manager using only C# code. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:30 - Setting up the scene 0:55 - Creating a Level Button prefab 1:25 - Creating a Placeholder Panel for our Pages 2:02 - Creating a C# script to manage our levels 2:40 - Calculating how many levels fit on a page and how many total pages we need to create 4:30 - Creating a function to create a panel for each page 5:55 - Cloning our panel placeholder 8:00 - Creating a function to clone and place our level icons 9:35 - Creating a Grid Layout Group with C# code 10:15 - Adding Cell Size and alignment to our Grid Layout Group 12:15 - Adding the Page Swiper script 12:45 - Customizing Level Icons to show Level Number 13:20 - Adding Cell Spacing to our Grid Layout Group 14:15 - Adjusting the Page Swiper script to max out pages 15:40 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/06/1/96/level-selector.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsSwiping Pages in UnityPress Start2019-05-15 | In this video I am going to show you how to swipe between panels. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:45 - Setting up the canvas 1:35 - Creating a new C# script 1:45 - Using Unity's built-in drag event handler 3:00 - Creating a function to move our panel 4:20 - Creating a function to jump between pages 6:35 - Creating an easing effect to animate the transition 8:50 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/05/15/95/swiping-pages-in-unity.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials2D Perspective Effect with an Orthographic Camera (Parallax)Press Start2019-05-01 | In this video I show you how to create a parallax effect with a looping 2D background. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: 0:25 - Recap of the Background Loop Script 1:40 - Setting up the Z Axis 2:30 - Calculating Parallax Speed 4:25 - Storing our Camera's position 5:15 - Moving our background objects at Parallax Speed 5:25 - Final Product
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsWelcome to Press StartPress Start2019-04-26 | Hey, my name is Waldo and I’m a game developer who loves to make videos on game development. I taught myself how to code when I was around 9 years old and I have been doing it almost everyday since. I'm a strong believer that education should be free and that's why I started Press Start and made it publicly accessible for everyone to learn.
In this video, we cover: 1:10 - Create C# Script 1:50 - Calculating Screen Boundaries 2:45 - Cycle through each of our background objects and load them on the screen 3:50 - Creating a function to setup the scene 6:40 - Creating a function to move our background elements to create a seamless effect 9:15 - Repositioning objects to fill the screen 10:20 - Adding a choke value to fix seams 11:00 - Final Product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/04/15/93/endless-2d-background.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - Point and Shoot TutorialPress Start2019-04-01 | In this tutorial we discuss how to point and shoot a turret towards the direction of your mouse. SUBSCRIBE: bit.ly/2Js78lE ============ SUPPORT: patreon.com/pressstartclub
In this video, we cover: +0:50 - Creating a C# Script +1:40 - Calculating our target position +2:04 - Crosshairs following mouse movement +2:40 - Hiding our mouse cursor +3:15 - Rotating our gun to point towards the mouse +4:25 - Creating an anchor point for our turret +5:00 - Firing a projectile on click +8:40 - Showing off the finished product
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/04/1/91/unity-point-and-shoot.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsMobile Joystick Movement + Shoot in UnityPress Start2019-03-15 | How to shoot enemies in Unity on a touch device
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: https://pressstart.vip/tutorials/2019/03/15/90/movement--shoot-on-mobile.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - Shooting Enemies with ProjectilesPress Start2019-03-01 | In this video I will show you how to shoot projectiles out of a moving object. SUBSCRIBE: bit.ly/2Js78lE ============ In this video, we cover: + 0:58 - Importing Bullet from Photoshop + 1:20 - Creating a 2D projectile prefab + 1:50 - Creating a script to move the projectile towards the enemy + 3:40 - Cloning our projectile prefab everytime we press the Space Bar + 5:00 - Removing Enemy & Projectile from screen & loading an explosion animation
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2019/03/1/89/shooting-enemies-in-unity.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - Multiple Touches on Mobile Device [Input.GetTouch]Press Start2018-11-16 | In this tutorial I explain how to store multiple touches within a custom list to then spawn objects that follow the movement of each touch. SUBSCRIBE: bit.ly/2Js78lE ============ In this video, we cover: + 0:30 - Setting Up A Custom List Script + 1:25 - Creating a Script to Detect Multiple Touches + 2:20 - Creating a While Loop to cycle between touches + 2:55 - The three different touch phases we will be using + 3:30 - Detecting Touch Start, End and Move + 4:10 - Testing our touches on a mobile device + 4:50 - Creating a function to spawn our circle prefabs + 6:15 - Adding our touches to our list + 6:45 - Searching our list and removing our touch after it ends + 8:08 - Moving our circle when the touch is moved
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2018/11/14/81/multiple-touch-inputs.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - Mobile Panning with a Perspective CameraPress Start2018-11-09 | In this tutorial I explain how to write a C# script that will allow you to pan around the screen for a mobile or touch screen device in a perspective or 3D environment. SUBSCRIBE: bit.ly/2Js78lE ============ In this video: 1:00 - Understanding How Panning Works 1:15 - Setting up the Panning Script 2:05 - Difference between Perspective and Orthographic Cameras 2:35 - Creating the function to plot our points using Raycast 5:10 - Finished Example 5:30 - Finished Example using SimpleTown Asset Store Package
COPY & PASTE CODE FROM THIS TUTORIAL: https://pressstart.vip/tutorials/2018/11/9/78/perspective-camera-panning.html
ORTHOGRAPHIC PANNING & PINCH TO ZOOM TUTORIAL: https://pressstart.vip/tutorials/2018/07/12/44/pan--zoom.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials
WEEKLY DEVELOPER STORIES AND TIPS: https://pressstart.vip/newsletterUnity - How to Detect Collision in C# [Using Colliders]Press Start2018-11-01 | In this tutorial we discuss adding colliders on our objects so that we can detect collision within our script. SUBSCRIBE: 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
MORE TUTORIALS: https://pressstart.vip/unity-tutorials
WEEKLY DEVELOPER STORIES AND TIPS: https://pressstart.vip/newsletterUnity Movement [RigidBody vs Translate]Press Start2018-10-19 | In this video I go over a few methods on how to move a player or an object around the screen. I think share my thoughts on which method is best for each use. SUBSCRIBE: bit.ly/2Js78lE ============ In this video I discuss: 0:28 - Moving An Object Using Translate 2:20 - Problems with using Translate 2:50 - Using RigidBody for Physics & Collisions 5:00 - 3 Ways to Move An Object with RigidBody 5:10 - Using AddForce() 6:15 - Using Velocity 7:05 - Using MovePosition
TO COPY & PASTE SOURCE CODE: https://pressstart.vip/tutorials/2018/10/19/71/rigidbody-vs-translate.html
MORE TUTORIALS: https://pressstart.vip/unity-tutorials
Spawning Obstacles video: youtube.com/watch?v=E7gmylDS1C4Spawning Objects in Unity [Using Instantiate]Press Start2018-09-25 | 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: 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
MORE TUTORIALS: https://pressstart.vip/unity-tutorialsUnity - How To Save Game / Data [PlayerPrefs]Press Start2018-09-14 | In this video you will learn how to save player data using Unity's built-in component, PlayerPrefs. SUBSCRIBE: bit.ly/2Js78lE ============ Patreon: patreon.com/pressstartclub
You will learn how to: Store a String Store a Integer Store a Float
and how to: Retrieve a String Retrieve a Integer Retrieve a Float
MORE TUTORIALS: https://pressstart.vip/unity-tutorials#BrackeysGameJam: Day 4Press Start2018-08-25 | Multistreaming with restream.ioUnity: Mobile Joystick Tutorial [NO PLUGINS]Press Start2018-08-22 | 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
MORE TUTORIALS https://pressstart.vip/unity-tutorialsUnity - Keeping The Player Within Screen BoundariesPress Start2018-08-18 | In this tutorial I explain how to force your sprite to stay within the screen limitations using just a few lines of code. SUBSCRIBE: bit.ly/2Js78lE ============ In this video you will learn how to: + 0:35 - Scene Setup + 1:05 - Calculate Screen Boundaries + 1:30 - Create a new C# script + 2:10 - Calculate Screen Boundaries in World Space + 2:45 - Limit our object's center point to the screen boundaries + 3:45 - Calculate Object Boundaries + 4:15 - Clamp our object to the screen boundaries
For more Unity tutorials: https://pressstart.vip/unity-tutorialsUnderstanding Orthographic Size in UnityPress Start2018-08-14 | SUBSCRIBE: bit.ly/2Js78lE ============ In this video I explain what Orthographic Size is in Unity and how to calculate it for your game so that you have the perfect device zoom. I also show examples of how to adjust Orthographic size in your camera script so that you have the perfect zoom every time a scene is loaded, despite whatever device is being used.
In this video, I discuss: - 0:40 Problems with Orthographic Size - 1:10 How to Calculate Orthographic Size - 2:20 Creating a C# Script to Calculate OrthoSize - 4:15 Calculating for Horizontal Orientation - 4:50 Perfect Fit Zoom
To copy and paste the scripts used in this video: https://pressstart.vip/tutorials/2018/06/14/37/understanding-orthographic-size.html
For more tutorials like this: https://pressstart.vip/unity-tutorials
To download Jock Dummy: leftygames.io/jockdummyWorking with Time in UnityPress Start2018-08-10 | In this tutorial I explain how time.deltaTime works and how we can use it to build a stopwatch and a countdown timer. SUBSCRIBE: bit.ly/2Js78lE ============ +0:30 Creating a Text Field +1:10 Adding a Custom Google Font +1:40 Creating a Countdown Script +2:45 Explaining time.deltaTime +4:40 Creating a Stopwatch Script +5:45 Using a UI button to start/stop timer +7:05 Changing our buttons text on the fly