help me with my project

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

help me with my project

Postby canadian joe » Thu Feb 18, 2010 1:48 am

my sister is making a project that requiers a machine that spawns balls. the balls it spawns need to turn things white. she is really bad at scripting so can i get the script for this?
canadian joe wrote:im just writing this so i can sig it


RicH wrote:Phun's Army.
User avatar
canadian joe
 
Posts: 115
Joined: Wed Feb 10, 2010 9:42 pm

Re: help me with my project

Postby standardtoaster » Thu Feb 18, 2010 2:17 am

Code: Select all
Scene.addCircle({radius := 1; onCollide := (e)=>{e.other.color = [1,1,1,1]}})
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: help me with my project

Postby canadian joe » Thu Feb 18, 2010 3:52 pm

wow really! i thought i already tried that and it didn't work. now i smell like a non smart person
canadian joe wrote:im just writing this so i can sig it


RicH wrote:Phun's Army.
User avatar
canadian joe
 
Posts: 115
Joined: Wed Feb 10, 2010 9:42 pm

Re: help me with my project

Postby canadian joe » Thu Feb 18, 2010 4:37 pm

ok i just tested that script. the balls don't spawn out of the obejct. they spawn out to the far left left of the object.
canadian joe wrote:im just writing this so i can sig it


RicH wrote:Phun's Army.
User avatar
canadian joe
 
Posts: 115
Joined: Wed Feb 10, 2010 9:42 pm

Re: help me with my project

Postby standardtoaster » Thu Feb 18, 2010 5:14 pm

Code: Select all
    Scene.addCircle({pos := e.pos; radius := 1; onCollide := (e)=>{e.other.color = [1,1,1,1]}})
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 3 guests