Pixel-Team
Master of Pixel-Fu
I am making a node-based text graph utility that outputs a JSON file containing each node and its data, including id, text, speaker, child_node_list, etc. One of the variables of the node struct uses one of GML's built-in variables "id," except in my struct, it is not readonly, it is read/write. It works just fine when I compile for VM, but when I switch to YYC, I get the following error:
Script: NodeStruct at line 28 : assignment to read only variable
Why is it ok to borrow one of the built-in variables and use it in this way in VM, but not in YYC? My problem is that I don't want to have to rename this variable to be _id, or it will be the only variable in the JSON output that uses an underscore. Any help would be appreciated.
Script: NodeStruct at line 28 : assignment to read only variable
Why is it ok to borrow one of the built-in variables and use it in this way in VM, but not in YYC? My problem is that I don't want to have to rename this variable to be _id, or it will be the only variable in the JSON output that uses an underscore. Any help would be appreciated.