Gigicom
Member
Hey,
I‘m trying to figure out how to use pre-defined json files for some item data in my game.
Before, I simply assigned all values to variables and assigned those to a ds_map like this:
With json files, besides the „Apple“ string I can‘t do most of these things. I can‘t use things like a sprite index, data structures, enums or functions. Is there some extension you know of that makes it possible to use code in json files?
Thanks in advance
I‘m trying to figure out how to use pre-defined json files for some item data in my game.
Before, I simply assigned all values to variables and assigned those to a ds_map like this:
GML:
constantData = item.apple;
name = „Apple“;
graphic = spr_ItemApple;
list = ds_list_create();
listVal = ds_list_find_value(anotherList, 1)
Thanks in advance