Carloskhard
Member
So I'm making some planets which obtein their scale and other variables from another object which spawn them and send them the variables
, however, when planets execute their create code they don't have those varibales and they have to wait one frame before they come so my only option is to wait one frame with alarm[0] and do so for every inherent variable, which is ugly.
What can I do so objects obtain those variables before executing their create code? Thanks
Code:
planeta = instance_create (xx,yy,obj_planeta);
if (yy = 7000){
planeta.alpha = 1;
planeta.image_xscale = 2;
planeta.image_yscale = 2;
}
What can I do so objects obtain those variables before executing their create code? Thanks