Moving the camera with a script; adding score when an object falls below a certain y value

So, here’s a basic rundown:
I’m working on a project for my Game Design class, and right now I’m creating a game roughly similar to angry birds, in a way. I’ve got a basic structure already made, but the two problems I’m running into right now are these:

  1. I want to move the camera to the right to show the structure, and then back to the left where the slingshot is. Does anyone here know a simple way of doing that?

  2. I want to implement a small score system e.g. when an object gets hit by a projectile launched by the slingshot and falls below (let’s say) -20 on the y axis. Does anyone here have a simple solution for this?\

Any help is greatly appreciated.

Nobody is writing code for you. Make an attempt and show it on here, ask questions.

And since this is for a class, it will benefit you to try yourself first and then ask for help.

1 Like