MIchael PS
Member
Hello,
I have a small question here.
I have an obj_A and an obj_B. Through obj_ A, I create an obj_B, “instance_create(x,y,obj_B)”, and I want to access a variable in obj_B through obj_A, to change it. I don’t want to do it with “obj_B.variable” because I have a lot of obj_Bs and I want to change only the one I am creating now.
I have seen someone doing something like this:
“ var B = instance_create(x,y,obj_B);
B.variable = whatever; ”
But that doesn’t seem to work.
Any ideas?
Thank you a lot for your time,
Michael
I have a small question here.
I have an obj_A and an obj_B. Through obj_ A, I create an obj_B, “instance_create(x,y,obj_B)”, and I want to access a variable in obj_B through obj_A, to change it. I don’t want to do it with “obj_B.variable” because I have a lot of obj_Bs and I want to change only the one I am creating now.
I have seen someone doing something like this:
“ var B = instance_create(x,y,obj_B);
B.variable = whatever; ”
But that doesn’t seem to work.
Any ideas?
Thank you a lot for your time,
Michael