Page 1 of 1

yet another question: paths?

PostPosted: Mon Jul 26, 2010 3:26 pm
by Toasterman
I haven't used paths much in game editor and was wondering if you could do anying cool path stuff in the script.
Specifically, I would like to know if you could give an actor a path that (for instance) goes down, then right, then up and then
could you make your charector (starting with a "walking down animation") change animation to a "walking right" animation when it moves right on the path?
then turn left (to be faceing up) when it begins the "up" part of the path?

can you interface with paths at all in the script editor?- create or change paths dynamically, or atleast detect where in the path an actor is?

Any help would be appreciated :)

(I'm making a top-down perspective game)

Re: yet another question: paths?

PostPosted: Mon Jul 26, 2010 8:28 pm
by DST
No, you cannot interfere with a path once it's been created, or edit it during game. Here's what you can do:

xvelocity, yvelocity, and angle are absolute. If a player is walking downward, his yvelocity is positive, whether normally or on a path. So any animation command based on velocity/angle should work fine while a player is on a path. (works when following mouse too).

The only way to adjust a path is to add one long node that goes offscreen, and change off that path when edge of screen is reached (rather than path finish). That way you can edit the path to stretch that node farther away or closer in to adjust the speed of the path.

Re: yet another question: paths?

PostPosted: Mon Jul 26, 2010 9:13 pm
by Toasterman
Great, thank you the help (again) :D

hopefully I will post the game I am working on within the next week and all the questions I've asked (8 or 9, now?) will come to fruitation! :D