[Extension] New AdvancedPlatformCamera Behavior

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:

  1. Camera ZoomIn/ZoomOut events
  2. Camera KeepZoom event
  3. Camera UnkeepZoom event
  4. Camera position following with lerp

In the next steps I’ll implement the following:

  1. Camera shake
  2. 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

2 Likes

Wow !
It will be very useful.

1 Like

Look forward to when its finished. Looks very useful. Thank you for taking the time to contribute.

1 Like

Hi guys, you can follow the updates here: https://github.com/4ian/GDevelop-extensions/issues/19