if you just want color change then use this in oncollide (e)=>{e.this.color:=[0,1,0,1]}
for making it green or (e)=>{e.this.color=e.other.color} both should be made on the pins and not the hitting object (make sure that the collided and the box you want is connected/the same) and if you want i can teach you much more than this my email is 300istilmig@gmail.com ot comment my learn how to script scene
I will try to explain... in the oncollide text box type something like (e)=>{ scene.addbox({pos=e.pos; density:=12; size:=[1,2] }) } that should if spelled right spawn a box higher than it is wide you can maybe add something like this to spawn a certain amount of the box... (e)=>{ for(13, (i)=>{ spawn-script }) } that will spawn 13 of a box or circle depending on which script you use
just ask if I didnīt explain it good enough or if you have other questions?
(e)=>{ e.other.liquify({ pos=e.pos })} make sure that the thing it hits is a cloned to avoid it getting liquified so it just adds a amount of water that would come if liquifieng it
cant remember other one because i normally don't spawn water but I can teach you almost anything else (but not polygon spawns haven't learned yet) use this link
http://www.algodoo.com/algobox/details.php?id=48915
go to http://www.algodoo.com/algobox/details.php?id=48915 and comment my explanation if it is not helpful
press f11 type something like scene.my.count=0 (after scene.my. it doesnt matter what you type it is just a name but make sure that you can remember it)
then you have a value of 0 then choose a box in the script menu for text type {``īī +scene.my.count} then it will update automatic then chose something like a circle in the oncollide type (e)=>{ scene.my.count=scene.my.count +1 } then every time the ball/circle hits anything it will increase the value/number with 1
nice but there is 3 problems;
first it is glued to something when starting scene
second it is slow
last some of the parts of the scene is badly placed or loose
stop being mean try giving useful comments instead of that thing you do ...
better than number 1 but still a couple of problems the road is having a collideset
and the cat is driving sideway the most of the time but better 9/10
hey do you wanna know some more script then go to this link and ask me for questions and I will answer or teach you from the bottom with msn or skype http://www.algodoo.com/algobox/details.php?id=48915
hey do you wanna learn scripting then press this link -> http://www.algodoo.com/algobox/details.php?id=48915 and ask questions or ask me to teach you it with msn or skype
lol that is simple just make something so when you press backspace something touches the q box the thing hitting box should be scripted with the algodoo version of (e)=>{e.this.text=e.other.text} then the other shall not have any text