need help with advanced commands!!

About advanced scenes, and the Thyme scripting language used in Algodoo.

need help with advanced commands!!

Postby jessebax129 » Sun Jun 20, 2010 12:21 pm

hi i'm working on a ''thing'' that follows a certain track, i want it to start at A > B > C > D > E
going to the A and when thats done, > go to B and when that's done > go to C; i know how to let it move but how do i let it go that way? it's like a ''procedure'' (i'm not english so i don't know if that's the right word) for example: starting up your computer: 1st it does this, when it's done it does the next this, and so it goes on. I hope your understand my question, i would be really pleased if you guys couled help me :clap:


well: it will be a ''cube'' with 4 thrusters at each side, so it can move at every direction, i want it to go to A and then when it's done immediately going to B, it just flies around in open space (gravity is OFF, airfriction ON) for example: it starts exactaly at [0,0]; i want it to go to A[10.5,3] for example and when it's there i want it to go to B[5,5] but how do i make it? plz not to many ''if'' statements :wtf: mayby it get's better explamed by a code:
[0,0] > [10.5,3] done ? go to [5,5] the thrusting is no problem but the scripting is hard :lol:
Last edited by jessebax129 on Sun Jun 20, 2010 6:31 pm, edited 1 time in total.
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: need help with advanced commands!!

Postby RicH » Sun Jun 20, 2010 12:25 pm

What exactly do you want to do? Do you want the commands to run immediately after the previous one, or do you want timed ones?
You could make a mechanism.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: need help with advanced commands!!

Postby Rideg » Sun Jun 20, 2010 4:55 pm

does it fly or can it follow a track?
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: need help with advanced commands!!

Postby Kilinich » Sun Jun 20, 2010 10:04 pm

For moving along track better use this tech: http://www.algodoo.com/algobox/details.php?id=38026
You can see implementation in belaz racing too. Ghost car movement is exactly what you talking about.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest