Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable scripting the appearance of objects #2134

Open
bjorn opened this issue May 31, 2019 · 1 comment
Open

Enable scripting the appearance of objects #2134

bjorn opened this issue May 31, 2019 · 1 comment
Labels
feature It's a feature, not a bug.

Comments

@bjorn
Copy link
Member

bjorn commented May 31, 2019

It would be nice if the appearance of objects was not solely determined by a few hardcoded options, but could be replaced or added to by scripts.

A script could for example decide to render some primitive based on a custom property, like displaying a radius or a vector.

In some cases it would even just be useful if the script could determine the color of the object (see this forum thread).

Expansion of #949.

@bjorn bjorn added the feature It's a feature, not a bug. label May 31, 2019
@deadowl
Copy link

deadowl commented Jun 28, 2024

Use case: ancient game engine supports object which is constrained as x, y, and chardata--the natural mapping is to use a Point object, but the game engine gives this particular class of object fixed dimensions of 32x16px. For editing purposes, it makes sense to use a Point object because it meets all the base requirements. For visualization purposes, it makes sense to render a Rectangle based on the point.

Use case: ancient game engine supports an object which is constrained as x, y, image (optional), and chardata--the natural mapping is to use a Point object because it meets all the base requirements, and this is possibly only because having an image is optional. For editing purposes, it makes sense to use a Point object. For visualization purposes, it may or may not make sense to render something from an Image Collection Tileset. This one's particularly restrictive because you can't mix tiles and objects in the same layer. I'm also not sure whether Image Collection Tilesets are restricted to the grid, and if they are that'd also be a problem in this use case.

Potential solution: A query of objects matching property descriptions, class in particular, in combination with rendering capabilities, could be used by extensions to provide improved visual feedback while editing a map. This could also provide visualizations for things like indicating whether an object is within the constraints of exporting to a specific target game level format.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants