Help: t2dPath problem
by Sean Yeomans · in Technical Issues · 09/02/2008 (9:18 pm) · 0 replies
Hey guys,
An object in my game is following a t2dPath fine, the only problem is its rotation of my animated sprite is changing for some reason... any ideas? It's facing down, when originally its supposed to face to the left.
I'm creating the path object:
% thePath = new t2dPath()
{
pathType = "LINEAR";
};
% thePath.addToScene($thescenegraph);
I'm adding a bunch of nodes to the path dynamically:
%thePath.addNode("0 0");
%thePath.addNode("0 1");
ect...
I'm attaching the path to the object:
%thePath.attachObject(%theObject, 45, 1, 0, 1, WRAP, 1, false);
Thanks for your help!
An object in my game is following a t2dPath fine, the only problem is its rotation of my animated sprite is changing for some reason... any ideas? It's facing down, when originally its supposed to face to the left.
I'm creating the path object:
% thePath = new t2dPath()
{
pathType = "LINEAR";
};
% thePath.addToScene($thescenegraph);
I'm adding a bunch of nodes to the path dynamically:
%thePath.addNode("0 0");
%thePath.addNode("0 1");
ect...
I'm attaching the path to the object:
%thePath.attachObject(%theObject, 45, 1, 0, 1, WRAP, 1, false);
Thanks for your help!
About the author