length of spring

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

length of spring

Postby davidmyska » Sun Sep 18, 2011 8:00 pm

Hello, I need a script for the spring to use the arrows up and down its length changed. I know that this script by changing the length of the spring on the mouse Y-axis: scene.my.fs . Ask me how to do those arrows

thanks
davidmyska
 
Posts: 1
Joined: Sun Sep 18, 2011 7:00 pm

Re: length of spring

Postby monstertje3 » Mon Sep 19, 2011 7:20 am

create 2 lasers, put a different key on each one
then put the onlaser hit like;
Code: Select all
scene.my.fs=scene.my.fs+0.1

and
Code: Select all
scene.my.fs=scene.my.fs-0.1
for the other one
Basically, there are only 10 types of people in the world. Those who know binary, and those who don't.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
User avatar
monstertje3
 
Posts: 343
Joined: Sat Sep 05, 2009 4:29 pm
Location: N-H, NL


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests