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: Volume Falloff #373

Closed mxsdev closed 2 years ago

mxsdev commented 2 years ago

Description

This is a basic volume falloff, implemented by lerp'ing based on the distance between a "source" and a "target."

This is for the platformer example.

How to use the extension

Can be used when you want to have a sound louder the closer you are to it.

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

VolumeFalloff.json.zip

github-actions[bot] commented 2 years ago

Oh no 😱! An internal error has occured while running automated tests on your submission. See logs at https://github.com/GDevelopApp/GDevelop-extensions/actions/runs/1861951316.

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!

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!