New extension: Dynamic tiled sprite changer #1139
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Dynamic tiled sprite changer
With this tool you will be able to change the sprites of your objects dynamically, which will allow for various business rules, such as a floor that changes theme automatically or skins for your character.
The possibilities are immense.
This extension was made thinking about the template that I will soon sell for a complex character customization scene for RPG.
The extension is for community and non-profit use, please use it giving due credit to me and @arthuro555 who made the extension I based it on "Load images from a URL". My thanks @arthuro555.
How to use the extension
To use it you only need a TiledSpriteObject and in the event sheet you must go to another actions in the advanced area and click on Change TiledSprite Dynamic and then on Load Path/URL into a tiled sprite. Here you must define the sprite that will be used, its dimensions and the tiled object that will be modified. You must also mark whether or not it will be modified. After these definitions you must follow your business rule, in my tests I am using it for a complex character creation scene for RPG that I will soon sell as a model. (the use of the extension is completely free and I thank @arthuro555 for making the "Load images from a URL" extension that helped me in the beginning) in the same way as this extension, the address of the sprite that will be used must be a URL, I still haven't been able to make the image using the relative path "assets/image.png" work and anyone who can help me should contribute the extension.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
DynamicTiledSpriteChanger-DEMO.zip
Extension file
DynamicTiledSpriteChanger-extension.zip