how do I change the force of an engine with a laser?

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

how do I change the force of an engine with a laser?

Postby Renato7000 » Sat Oct 10, 2009 12:18 am

as I do for the longer or more if approaching an obstacle, to the laser to change the force of an engine?

the more the laser is close / over time the laser detects an obstacle, the stronger the hinge is

sorry the language, but I'm using the translator of google, so do not try to understand 100% :problem:

if you do not understand me explain what I was trying to write here in more ways translator to see if one of them you understand

could put more pretty faces in this forum, they are ugly lol :wtf:

thx

©2009 Google translator
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sat Oct 10, 2009 2:04 am

Do you want to have it change the strength of a hinge the farther away the laser is?
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: how do I change the force of an engine with a laser?

Postby Renato7000 » Sat Oct 10, 2009 3:29 am

otherwise, I want to change the strength the closer the laser is

©2009 Google Translator
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sat Oct 10, 2009 5:38 am

Rating: rated 5
Filesize: 14.36 kB
Comments: 1
Ratings: 1
download

Is this what you wanted?
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: how do I change the force of an engine with a laser?

Postby Renato7000 » Sat Oct 10, 2009 4:56 pm

yes, that is, but has the power to increase faster?

thx :thumbup:

©2009 Google Translator
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sun Oct 11, 2009 12:34 am

You want me to also be able to make it increase speed? I can do that.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: how do I change the force of an engine with a laser?

Postby Renato7000 » Sun Oct 11, 2009 1:31 am

not increase the speed, so I already know, but I want him to grow more powerful when I get close, you did not increase much strength, I want more, as I do?

©2009 Google Translator
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sun Oct 11, 2009 1:59 am

(e)=>{
Scene.my.strength = 50 - Scene.my.dist(Scene.my.laserpos, e.pos) / 0.25; Scene.my.strength <= 0 ? {Scene.my.strength = 0} : {Scene.my.strength = Scene.my.strength} }

Change the 0.25 in the script to whatever value you want. The smaller the decimal number the faster it will increase.

Rating: rated 5
Filesize: 14.36 kB
Comments: 1
Ratings: 1
download

There's the scene.

BTW could you please tell me what language is your main? It might be easier for me to give you what you want. I'll type it in english and then translate it to your language. It might make it easier. :/
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: how do I change the force of an engine with a laser?

Postby Renato7000 » Sun Oct 11, 2009 3:49 am

PERFECT!!!

Thanks very much!!!! :P
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sun Oct 11, 2009 3:52 am

You're welcome! :thumbup: I hope that you understood what I meant about changing how fast it can increase.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: how do I change the force of an engine with a laser?

Postby Renato7000 » Sun Oct 11, 2009 3:54 am

"BTW could you please tell me what language is your main? It might be easier for me to give you what you want. I'll type it in english and then translate it to your language. It might make it easier. :/"

LOL
really :wtf:


Yes, I understand
thank you very much
Renato7000
 
Posts: 9
Joined: Sat Oct 10, 2009 12:09 am

Re: how do I change the force of an engine with a laser?

Postby standardtoaster » Sun Oct 11, 2009 3:57 am

nvm. I just realized that you might be translating the english into whatever language you speak. :/ Sorry. If you need anymore help just ask. :thumbup:
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests

cron