Hi everyone.
I'm new to using Unity and C#. I am working on a project for uni and need some help please. I'm trying to make a side scrolling shooter game, like R-type. I am trying to make the camera work in the same way as R-Type.
The camera in R-type is always moving at a steady pace to the right and the player is bounded by the camera itself so they cannot move off the screen.
I can make the camera scroll at a steady pace but not sure how to/if I have to use mathf.clamp to set up the boundaries for my camera. If I do need to use mathf.clamp would this script be attached to just the camera or also the player gameobject?
Any help is greatly appreciated
↧