Pointer Influence
Overview
The Pointer Influence extension is nothing more than an influence on the camera that points from the center of the camera to the user pointer (mouse or finger depending on the platform). You can control how much influence each axis has on the camera. This is the simplest extension and it’s a great start to learn how to make your own ProCamera2D extensions. If for example your game uses a controller, it should be very straightforward to adapt the existing code. So feel free to dig in and change it to fit your needs.
Editor
Parameters:
Max Horizontal Influence
: How much should the camera be influenced by the horizontal pointer positionMax Vertical Influence
: How much should the camera be influenced by the vertical pointer positionInfluence Smoothness
(>=0): Represents how smooth the pointer influence should be. The lower the number the quickest the pointer influence moves