Uploaded August 2018 | Updated September 2026, 2 weeks ago
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
Copy & Paste Code Here:
https://pressstart.vip/tutorials/2018/06/28/41/keep-object-in-bounds.html
For more Unity tutorials:
https://pressstart.vip/unity-tutorials
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
Copy & Paste Code Here:
https://pressstart.vip/tutorials/2018/06/28/41/keep-object-in-bounds.html
For more Unity tutorials:
https://pressstart.vip/unity-tutorials

![Unity Movement [RigidBody vs Translate]
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: https://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:
https://www.youtube.com/watch?v=E7gmylDS1C4 Unity Movement [RigidBody vs Translate]](https://i.ytimg.com/vi/ixM2W2tPn6c/mqdefault.jpg)



![Unity - How To Save Game / Data [PlayerPrefs]
In this video you will learn how to save player data using Unitys built-in component, PlayerPrefs.
SUBSCRIBE: https://bit.ly/2Js78lE
Patreon: https://www.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
COPY & PASTE:
https://pressstart.vip/tutorials/2018/09/14/92/unity-saving-game-data.html
MORE TUTORIALS:
https://pressstart.vip/unity-tutorials Unity - How To Save Game / Data [PlayerPrefs]](https://i.ytimg.com/vi/y7RPVvwjrsA/mqdefault.jpg)