Hi to all guys, I’m creating a new behavior with platformer camera. The goal is to add a dynamic zoom management and movement to the scene camera.
You can see an example here:
https://www.loom.com/share/3f0c648a2d024a0190b89be0be9a15e0
The idea is to add a more fancy zoom effect on camera, to give a new appeal to your platformer games.
For example, if you move the camera will change the zoom, if you enter some areas the camera will change the zoom and maybe, in the next steps, the camera will follow a target interpolating its position, to give a more cool effect to the game.
Currently, I’ve implemented the following:
- Camera ZoomIn/ZoomOut events
- Camera KeepZoom event
- Camera UnkeepZoom event
- Camera position following with lerp
In the next steps I’ll implement the following:
- Camera shake
- Camera LookAt
Available actions
ZoomIn/ZoomOut
The camera will zoom in or out according to behavior properties.
KeepZoom
The camera will zoom to a defined zoom statically.
UnkeepZoom
The camera will zoom to the default behavior zoom.
Conclusion
If you like the idea, and have any suggestions about that, please let me know in the comments!
UPDATE 2019/09/10
Behavior improvements and new PositionTo action
https://www.loom.com/share/b7e1d5909bac4581b118813abb83f285
NEW PositionTo function
Make the camera follow the player with interpolation