Can't move instantiated object.

Hey guys,

I’ve got a instantiated object/prefab and I can’t modify it’s position.

Here is a code snippet (in a script outside of the prefab):

            for (int i = 0; i < protags.Count; i++)
            protags*._sprite = Instantiate(Resources.Load("Demon"),*

new Vector3(0, 0, 0),
Quaternion.identity) as GameObject;
foreach (Protag ptag in protags)
Vector3 theScale = ptag._sprite.transform.localScale;
theScale.x *= -1;
ptag._sprite.transform.localScale = theScale;

Vector3 thePos = ptag._sprite.transform.position;
thePos.x = 200;
ptag._sprite.transform.position = thePos;
The only modification that seems to work is manipulating the object’s scale (in bold). Everything else doesn’t yield any results, I’ve tried many methods such as modifying the position, localPosition, Translate, adding force to it’s Rigidbody2D, using a script inside the prefab.
Any advice would be perfect. Thanks.

Okay found out the solution, it was the Animator component causing issues. I encased the object in a another blank GameObject and edited the Transform of that. Not sure WHY it wouldn’t accept my previous modifications, must be a bug.