Example
Example
Click on the example then use the arrow keys or WASD to explore.
Fully understand the concept by watching the tutorial in full screen at high res.
Once you have watched the video, you can refer to the code below to help you make your own that fits your game. Make sure you type it yourself to help you learn.
A simple camera that follows the player but doesn't reveal the edge of the screen might look something like this. Note: The 'clamp' function function is not built into microStudio, you will have to go here and click import source file .
A camera with drag, smoothing and other features can be quite complex, like this.