Skip to content

DynamicBanner#2054

Open
github-actions[bot] wants to merge 1 commit intomainfrom
extension/Biversenart/2053
Open

DynamicBanner#2054
github-actions[bot] wants to merge 1 commit intomainfrom
extension/Biversenart/2053

Conversation

@github-actions
Copy link
Contributor

Description

Dynamic Image URL Loader

This extension allows you to dynamically change the texture of any Sprite object during gameplay. It's perfect for displaying real-time advertisements, player avatars, or dynamic content fetched from the internet.

Key Features:

Automatic Fitting: No matter the source image's resolution (HD, 4K, etc.), it automatically scales to fit your Sprite's pre-defined size in the editor.

Variable Support: Directly use GlobalVariableString(MyURL) or scene variables without complex expressions.

Optimized Performance: Uses PixiJS texture caching to ensure smooth transitions and low memory usage.

Error Handling: Includes built-in console logging for broken links or loading errors.

How to use:
Simply use the "Load URL into Sprite" action, select your target Sprite, and provide a direct image link (e.g., "https://site.com/image.png") or a variable name.

How to use the extension

How to Use

This extension allows you to load external images from any URL or String variable directly onto a Sprite object while maintaining the sprite's original dimensions.
Basic Usage (One-time Load)

Add the "Load URL into Sprite" action to your event sheet.

Object: Select the Sprite you want to change (e.g., a billboard or profile picture).

URL: Enter the direct image link in quotes (e.g., "https://example.com/image.png").

Smooth: Set to true for high-quality scaling or false for pixel-art style.

Advanced Usage (Interactive/Real-time)

You can use this extension to create dynamic systems like ad-boards or avatar editors:

Input: Use a Text Input object to let the user (or your system) type a URL.

Trigger: When a button is clicked or a variable changes, call the "Load URL into Sprite" action.

Dynamic Source: Instead of a hardcoded link, use a variable: GlobalVariableString(MyUrlVariable).

Save & Persistence: To keep the image across sessions, save the URL variable to Storage and call the loading action at the "Beginning of the scene."

Key Technical Note

Auto-Resizing: The extension automatically detects the current width and height of your Sprite in the scene and forces the new image to fit those exact dimensions.

Supported Formats: Works with standard web formats like .png, .jpg, and .webp

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

Example file

Dynamic Banner.zip

Extension file

DynamicBannerUpdatev1.zip


Extension by @Biversenart

You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:

!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)

It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!

@github-actions github-actions bot added the ✨ New extension A new extension label Feb 25, 2026
@github-actions github-actions bot requested a review from a team as a code owner February 25, 2026 23:21
@github-actions github-actions bot added the ✨ New extension A new extension label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ New extension A new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant