if (parent != -4)
{
x = parent.x;
y = parent.y;
sprite_index = parent.sprite_index;
image_index = parent.image_index;
}