Page 1 of 1
help me with my project
Posted:
Thu Feb 18, 2010 1:48 am
by canadian joe
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?
Re: help me with my project
Posted:
Thu Feb 18, 2010 2:17 am
by standardtoaster
- Code: Select all
Scene.addCircle({radius := 1; onCollide := (e)=>{e.other.color = [1,1,1,1]}})
Re: help me with my project
Posted:
Thu Feb 18, 2010 3:52 pm
by canadian joe
wow really! i thought i already tried that and it didn't work. now i smell like a non smart person
Re: help me with my project
Posted:
Thu Feb 18, 2010 4:37 pm
by canadian joe
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.
Re: help me with my project
Posted:
Thu Feb 18, 2010 5:14 pm
by standardtoaster
- Code: Select all
Scene.addCircle({pos := e.pos; radius := 1; onCollide := (e)=>{e.other.color = [1,1,1,1]}})