Home / Uncategorized / Code for “How to make kitchen Items in algodoo”

Code for “How to make kitchen Items in algodoo”

Video here
Scripts:
BLENDER AND FRUIT:
(The blender is actually a laser)
In the fruit script menu in onHitByLaser type:
(e)=>{Liquify}
That literally turns the Object into a liquid
POTATOE PEELER:
In the potatoe script menu under materialname type:
“potatoe”
In the peeler under onCollide type:
(e)=>{
e.other.materialName == “potatoe” ? {
e.other.color = [0.83333331, 1.0, 0.0, 1.0] } : {}
}
The first line checks if the items materialName is potatoe and the second line changes the color to a bright white(If you want a different color, create an object with that color and in its script menu find color and copy that into the code)
You can also try this:
e.other.density = 10;(Changes the density of the object)
e.other.collideSet = 2;(Changes the collision layer to B or 2)
SAUSAGE COOKER:
(The cooker has a laser in it)
In the sausage script menu in onHitByLaser type:
(e)=>{
colorHSVA = colorHSVA – [0.001, 0, 0.001, 0] }
This will make the color darker But this:
(e)=>{
colorHSVA = colorHSVA + [0.001, 0, 0.001, 0] }will make it brighter

Thats it, Have fun (:

Check Also

Update Post

This is just a quick post to talk about…well, WHY I’VE NOT BEEN DOING AYTHING ...