Skip to content

Questions about import/export plugin #3150

Answered by bjorn
samhocevar asked this question in Q&A
Discussion options

You must be logged in to vote
  • unfortunately I had to write it in Python because the JS API is missing a loadFromImage equivalent for custom tilesets; what are the chances that such a function is going to be available soon?

Tiled 1.5 added support for creating images to the JS API, and @samhocevar has subsequently ported the tiled-pico8 plugin to JS.

  • are there plans to implement a mechanism that lets a script update only parts of a tileset, instead of reloading the whole image? for instance, update just one sprite

I think this can now be done using Tile.setImage.

  • is there a way to hide this property so that the user cannot inadvertently delete or corrupt it?

At the moment there are not yet any "read only" o…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bjorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2781 on October 05, 2021 14:18.