GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
131 stars 53 forks source link

New extension: Simple Smooth Camera Follow #371

Closed mxsdev closed 2 years ago

mxsdev commented 2 years ago

Description

A simple smooth camera follow, which is intended as a drop-in replacement for the standard "Center the camera on an object within limits" action, but with smoothness.

This is made for the platformer example, and is intended as an alternative to Davy's extension which currently sits in PR. The idea is to have a "Simple" smooth camera follow which is straight forward to use (and thus will be less scary to new users for the platformer example), and then the more "Complex" one, which Davy is working on.

There is a concern about having too many camera extensions, especially since these two extensions do the same thing. Perhaps we can encourage Davy to rename his extension as "Advanced," or something like this so the user isn't confused that there are two extensions that do the same thing?

How to use the extension

It has one function which is essentially equivalent to the camera center on object action.

Note

You'll notice that the expressions for the actions are one-liners. This was to avoid using variables where they are unnecessary.

I am not super familiar with the protocol for GDevelop extensions, so if we'd rather create a few variables in the extension to make the extension's actions more readable, let me know :)

Checklist

Example

Platformer_v_1_0_2.zip

Extension file

SimpleSmoothCameraFollow.json.zip

github-actions[bot] commented 2 years ago

Hi @charburgx!

Thanks for your submission! Unfortunately, our automated test system found a few issues with your extension:

❌ 1 Error found in extension 'SimpleSmoothCameraFollow':

  ⟶ ❌ [Extension name consistency]: Extension filename should be exactly the name of the extension (with .json extension). Please rename 'SimpleSmoothCameraFollow_v_1_0_0.json' to 'SimpleSmoothCameraFollow.json'.

❌ 1 Error found in extensions - please fix it before generating the registry.

Please fix them, and edit the link in your original submission to a zip file with the fixed extension.

Thanks again for your hard work!

github-actions[bot] commented 2 years ago

Hi @charburgx!

Thanks for your submission! Unfortunately, our automated test system found a few issues with your extension:

❌ 1 Error found in extension 'SimpleSmoothCameraFollow':

  ⟶ ❌ [Extension name consistency]: Extension filename should be exactly the name of the extension (with .json extension). Please rename 'SimpleSmoothCameraFollow_v_1_0_0.json' to 'SimpleSmoothCameraFollow.json'.

❌ 1 Error found in extensions - please fix it before generating the registry.

Please fix them, and edit the link in your original submission to a zip file with the fixed extension.

Thanks again for your hard work!

github-actions[bot] commented 2 years ago

Hi @charburgx!

Thanks for your submission! Unfortunately, our automated test system found a few issues with your extension:

❌ 1 Error found in extension 'SimpleSmoothCameraFollow':

  ⟶ ❌ [Extension name consistency]: Extension filename should be exactly the name of the extension (with .json extension). Please rename 'SimpleSmoothCameraFollow_v_1_0_0.json' to 'SimpleSmoothCameraFollow.json'.

❌ 1 Error found in extensions - please fix it before generating the registry.

Please fix them, and edit the link in your original submission to a zip file with the fixed extension.

Thanks again for your hard work!

github-actions[bot] commented 2 years ago

Hi @charburgx!

Thanks for your submission! Unfortunately, our automated test system found a few issues with your extension:

❌ 1 Error found in extension 'SimpleSmoothCameraFollow':

  ⟶ ❌ [Extension name consistency]: Extension filename should be exactly the name of the extension (with .json extension). Please rename 'SimpleSmoothCameraFollow_v_1_0_0.json' to 'SimpleSmoothCameraFollow.json'.

❌ 1 Error found in extensions - please fix it before generating the registry.

Please fix them, and edit the link in your original submission to a zip file with the fixed extension.

Thanks again for your hard work!

github-actions[bot] commented 2 years ago

Hi @charburgx! 👋 This submission has been moved to a PR as part of our submission pipeline. Please continue the submission process on this page. A few commands can be used there, use !update <Link to your zipped extension> to update the extension in the PR, and !merge to merge changes from the main branch into your PR. Thanks again for your submission!