supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Add `set_property()` and `get_property()` to the scripting API.

Open tylerandari13 opened this issue 2 years ago • 0 comments

set_property(string property, ANY value) - sets the property in an object to be value.

ANY get_property(string property) - gets the value of property from an object.

For example Tux.get_x() would be the same as Tux.get_property("x").

This would be under all objects and would allow you to access almost all info about an object. Im not sure how possible this is but it would be really cool to use.

tylerandari13 avatar Jul 15 '23 14:07 tylerandari13