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: 136

Views: 169

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: Scripting tutorial
Rating: 5.8334
Filesize: 23.05 kB
Downloads: 2066
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: Scripting fault!
Rating: 5
Filesize: 14.86 kB
Downloads: 353
Comments: 1
Ratings: 1
Date added: 2014/10/24 15:52:33
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Simple Scripting
Rating: 5
Filesize: 11.55 kB
Downloads: 302
Comments: 0
Ratings: 1
Date added: 2011/12/03 06:45:02
Made with: Phun
Rating: rated 5
download
Title: Helicarter *no scripting but have some controls*
Rating: 5
Filesize: 301.24 kB
Downloads: 232
Comments: 0
Ratings: 1
Date added: 2016/02/07 03:37:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Ball counter, scripting SICK!!!!!!!
Rating: 7.3077
Filesize: 314.4 kB
Downloads: 1738
Comments: 2
Ratings: 7
Date added: 2009/09/03 09:54:02
Made with: Phun
Rating: rated 7.3
download
Title: Scripting for anybody part 1
Rating: 5
Filesize: 37.51 kB
Downloads: 308
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: