Using moveto after instantiate?

I’m trying to have an instantiated object follow a moveto command after being instantiated.

Note:
I’ll add my code later since I’m not at home right now, if anybody has any ideas until then it’s appreciated.

2 Answers

2

First, When you instantiate the object, do this:

var theObject:GameObject = instantiate(stuff);

then you have a GameObject to work with.

(Assuming moveto is from iTween…)

iTween.MoveTo(theObject,moreStuff);

Ended up giving the object that needed to use moveto its own script.