(Unity) HOWTO : Enabling Roll-A-Ball in new Scenes
The “stage_1” scene that you downloaded in the first Unity tutorial comes pre-loaded for Roll-A-Ball gameplay to work. What if you wish to create a new scene and get your ball rolling in it?
Follow this brief demonstration video to enable any scene with Roll-A-Ball gameplay.
The steps are roughly–
- Copy-paste the “Player”, “GameplayCamera”, and “_uScript” gameobjects from your previous scene to your new scene.
- Delete the pre-existing camera in your new scene (probably called “Main Camera”). If this camera exists, it will prevent the player from seeing through the Gameplay Camera.
- Click the Gameplay Camera gameobject and look in the inspector. We need to make sure that its “follow_target_heightonly” component has its “target” property set to the player gameobject (so that it knows to follow the player instead of something else or nothing at all).
- Move the objects around to your favorite starting locations!
…And play the game!