This may be my second time asking for help today

I’m trying to set a boundary to where the player can only be within the camera but I am having a issue with being unable to define screenBounds.

I

:]

Sorry I didn’t read the screenshot properly. I see you understand screen width and height

but Are you in perspective or ornthro?

You have closed your class on line 5 by having a } at the end of that line. Remove the } from the end of line 5.
Then remove the { from line 23 as that makes no sense for that to be there.

Also, do not post screenshots of code - use code tags to post your scripts on the forum.

You should then go and work your way through some C# tutorials, as there should not be any reason to be making these typo mistakes.

Code goes inside the curly braces. Right now nothing is inside your monobehaviour class; it’s floating in no-man’s land.

Please, as mentioned, learn some basic C# principles.

Also, on line 16 and 17 you have incorrectly spelled your own viewPos variable. You have put veiwPos instead of viewPos.

You need to be very careful when writing your script, otherwise you will not get very far.

Um sorry i guess. I’m very dyslexic and am just trying to make a dumb re creation of flappy bird rock themed for my mom as a gift and just needed some help no need to tell me I shouldn’t be making those mistakes.