Some thing that helps a lot to figure something out is to lay it out in steps
- Player clicks “Control” button.
- Camera object moves to “show” controls.
Now that we did that, define anything that is unclear. In this case “show controls”
I’m going to assume this is in menu, so showing controls would move the screen to the left/right area, which displays the controls.
Ok, so now with that you know exactly what you want to happen.
Now assign each step to an object.
Step 1 will take place in the “Controls” object.
Step 2 will take place in the camera object.
These steps happen in 2 separate objects, and the effect of 1 needs to affect the other (click button —> move camera).
This means to communicate between 2 objects you’ll either need to send a Message or use a Global. A message is all that is needed in this case.
Now let’s try to solve the first step:
When the Control button is clicked, [step 2]
This seems like a simple MouseClick—>Message
Ok time for step 2
Mailbox—>Move?
One final thing to be defined, how the camera moves. You can either Teleport the camera with Position, move it with Velocity, or Ease + Position.
So either the 1st or 3rd option will work, using Velocity for this is just weird and shouldn’t be done. You have to fiddle with it a lot and it may not even work if there is a lag spike.
Ok, now where to move it? The camera should move to be in the middle of the Controls area.
With that information, you should be able to solve the issue.