yet another question: paths?

Non-platform specific questions.

yet another question: paths?

Postby Toasterman » Mon Jul 26, 2010 3:26 pm

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)
"If there are no stupid questions, what kind of questions do stupid people ask? Do they get smart just in time to ask a question? -Scott Adams

Hey! I've got okayish internet now! Now I can try all those cool demos I've seen!
User avatar
Toasterman
 
Posts: 75
Joined: Thu Jul 22, 2010 4:22 am
Location: Drowning in Dial-Up Ocean
Score: 7 Give a positive score

Re: yet another question: paths?

Postby DST » Mon Jul 26, 2010 8:28 pm

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: yet another question: paths?

Postby Toasterman » Mon Jul 26, 2010 9:13 pm

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
"If there are no stupid questions, what kind of questions do stupid people ask? Do they get smart just in time to ask a question? -Scott Adams

Hey! I've got okayish internet now! Now I can try all those cool demos I've seen!
User avatar
Toasterman
 
Posts: 75
Joined: Thu Jul 22, 2010 4:22 am
Location: Drowning in Dial-Up Ocean
Score: 7 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest