Sorry if someone has already asked this question. I looked for topics like this but couldn't find anything that helped.
I want to change one object into another object using instance_change
I also want the new object to have all the variables and sprite_index of the old object.
instance_change(new_object,perf); automatically passes all the new variables I created and the image_blend, image_xscale,image_yscale,ect.
But for some reason it doesn't pass on the old sprite_index to the new object.
I tried to assign the old sprite_index to the new object using this code;
with(instance_change(object2,false))sprite_index = other.sprite_index;
But it doesn't work.
So how can I get the id of the new object that the old one changed into?