flyinian
Member
I am trying to assign a variable to a variable in the variable definition on the object's page.
EX:
EX:
GML:
//Here is the variables in question.
//I am assigning _object an object. I am then assigning _SpriteX & _SpriteY the variable of the _object's X & Y value which is determined through another object.
//I have these variables located in the "Variable Definition" page of the object and not in the create event.
//The x and y placement don't work right.
//If this is possible to do, what data type would this be considered when used in the "Variable Definition" page of the object?
//I am also using the parenting and inheritance system with this object.
//Assigning variables to variables works fine If I don't use the variable definition page and go with the create event.
///---Used Object's Variable---///
_Object = obj_object; //This is the object to be used.
_SpriteX = _Object.x; //Sprite's X cordinate.
_SpriteY = _Object.y; //Sprite's Y cordinate.