Metainformation for sprite-instances needed in map-editor
Now there is only a possibility to place a sprite on map. It would be cool to controll properties of a sprite instance, which is already placed on map via map editor.
- Associate folder or single sprite (on the left map editor side) with an existing class.
- After you placed a sprite on a map you should be able to double click it on map
- upon double click a popup window with the properties of associated class comes up
- you can set up some needed properties to specific values
- when you close dialog with ok these values are written into the map by the map-editor. like map.setAt(x,y, propertyList)
- when i walk through the a map in code I can get not only the name of a sprite used on XY position in map, but also the properties I already set up in map-editor
local map = maps["some_map"]
local sprite = map.get(0,0)
print(sprite)
//where sprite is an object for example:
//object
// name = "enemy"
// sprite.life = 20
// sprite.direction = -1
// sprite.id = 32
//end
Unfortunately I can't find a possibility to extend the map editor via plugin, When I create one, the place where the editor should be is completly empty.
Would be nice if someone rewrites the editor so it is written totaly in microScript as a plugin so we would have a possibility to extend it