So now we got the player moving around where we want it, but we don’t want the player to being able to go everywhere. It wouldn’t make much sense for the player to be able to go off screen, so we need to create some boundaries to keep them from wandering off.

To do this, we’ll be needing to use some if/then statements to get the point we want to make to be understood by Unity. Right now, let’s determine where we want our boundaries to be. …

Sabrina Windsor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store