Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: santelia on May 31, 2012, 06:07:37 AM
-
Hi all,
I have built some paths using Pixelplacement's iTween Path component. Typically every path is contained inside an empty game object. I'm trying to figure out how to move a drone along one of those paths. Let' say my path has 5 nodes. If I use the action iTween Move To, its not self explaining where I have to put what inside its inspector. There's no field where to place node's reference. The name of a path isn't an object. So I cant put the path name inside a variable and then use that variable inside the inspector. Instead, I've tried putting in the variable just the name of the empty object which contains my path, but iTween Move To doesn't follow the path. Any help, maybe resetting all my assumptions and starting with a new process from scratch? Thanks.
-
Hi,
Indeed, the current action doesn't support access to existing path.
what you can do is the following:
in the iTween moveto action, you can create the path there, by specifying the number of nodes ( path nodes). but since you have created the path already and that it actually should supported existing path, I extended the moveTo action, and you can get it here:
http://hutonggames.com/playmakerforum/index.php?topic=1699.0 (http://hutonggames.com/playmakerforum/index.php?topic=1699.0)
Bye,
Jean
-
Great!
I'm not at my Unity machine now, but I'll try the modified action asap.
Thank you Jean!
-
Hi,
no problem. Have a go, but I feel that actually, a new action specific to path should be made instead of keep adding stuff to the poor moveto action, It would be clearer and easier for to use it.
Bye,
Jean
-
Finally I've got the time to use it.
It plays perfectly.
Thank you Jean
:)