Game_Re_creation_Project
Member
Code Sample:
Obvious solution is to change variable name to
GML:
function someStructConstructor () constructor
{
//...
width = undefined;
height = undefined;
//...
}
//Create Event
someStruct = new someStructConstructor();
//...
someStruct.width = bbox_right - x; //Here "width" turns red like it's a built-in constant. Error is thown when attempting to write to variable. "height" does the same.
someStruct.height = bbox_bottom - y;
//...
_width
or something. Is width
a built-in constant? I can't find it in the list of built-in constants unless I missed it or wasn't looking in the right place. Has anyone else encountered this?