Browse Search Popular Register Upload Rules User list Login:
Search:
Scripting help

Image:
screenshot of the scene

Author: Death_noob

Group: Default

Filesize: 14.84 kB

Date added: 2016-12-30

Rating: 5

Downloads: 149

Views: 200

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

If someone could make a help scene that wouldd be nice.
Here is something I made.
Please log in to rate this scene
edit
Similar scenes
Title: Thyme scripting tutorial
Rating: 5.625
Filesize: 26.33 kB
Downloads: 903
Comments: 4
Ratings: 2
Date added: 2009/11/29 13:59:26
Made with: Phun
Rating: rated 5.6
download
Title: Scripting tutorial
Rating: 5.8334
Filesize: 23.05 kB
Downloads: 2098
Comments: 5
Ratings: 6
Date added: 2009/12/19 22:50:03
Made with: Algodoo before v1.8.5
Rating: rated 5.8
download
Title: Need some help with scripting
Rating: 5
Filesize: 292.73 kB
Downloads: 421
Comments: 0
Ratings: 1
Date added: 2011/04/21 02:26:22
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Simple Scripting
Rating: 5
Filesize: 11.55 kB
Downloads: 323
Comments: 0
Ratings: 1
Date added: 2011/12/03 06:45:02
Made with: Phun
Rating: rated 5
download
Title: ALGOODO SCRIPTING GUIDE (ENG)
Rating: 4.5
Filesize: 384.84 kB
Downloads: 539
Comments: 6
Ratings: 2
Date added: 2014/04/26 23:11:38
Made with: Algodoo v2.1.0
Rating: rated 4.5
download
Title: Scripting for anybody part 1
Rating: 5
Filesize: 37.51 kB
Downloads: 325
Comments: 0
Ratings: 1
Date added: 2017/12/16 17:18:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
Need spawning objects?
Here

(e)=>{
scene.AddCircle({
radius := 0.25;
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}

You're welcome!
Or i will make it for you.
What does e.normal do? The way you use it in the above script leads me to presume it has x and y components, but other than that what is it? :?

Also, on the topic, here are some other spawnable geometries:
(e)=>{
Scene.addPolygon({
surfaces := [[[-0.5, -(3 ^ 0.5) / 6], [0.0, (3 ^ 0.5) / 3], [0.5, -(3 ^ 0.5) / 6]]];
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}

(e)=>{
Scene.addBox({
size := [1.0, 1.0];
pos := pos;
density := 2.0;
vel := e.normal * 10
})
}
Last edited at 2017/01/01 09:36:33 by icrls984
Thanks!
I just have trouble remembering how to put the brackets :bonk: