Browse Search Popular Register Upload Rules User list Login:
Search:
Scripted Bomb

Image:
screenshot of the scene

Author: lustitaj

Group: Default

Filesize: 22.84 kB

Date added: 2010-03-08

Rating: 5.9

Downloads: 1254

Views: 1455

Comments: 4

Ratings: 3

Times favored: 0

Made with: Phun

Tags:

Scene tag

A bomb made only using script.

It spawns 200 balls with tracers in the impact point. This is why it can cause some lagg, because of the 200^2 contacts, but it will lag only for about one second so it's not that horrible:) .

Hope it's usefull.

Oh and thee scripts :

In console :

Code 1 :

position = [0, 0]

Code 2 :

ball () => {scene.addcircle {radius := 0.2; color := [1.0, 1.0, 0.0, 1.0]; restitution := 0.85; density := 5; pos := scene.my.position}; scene.addpen {radius := 0.2; pos := scene.my.position; color := [1.0, 1.0, 0.0, 1.0]}}

Code 3 :

explosion () => {scene.addcircle {radius := 0.2; color := [1.0, 1.0, 0.0, 1.0]; restitution := 0.85; pos := scene.my.position + [0.1, 0]}; scene.addpen {radius := 0.2; pos := scene.my.position + [0.1, 0]; color := [1.0, 1.0, 0.0, 1.0]}ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball ;ball }

OnCollide Code :

(e)=>{scene.my.position = e.pos; oncollide = (e)=>{}; explosion}

maybe there are some mistakes in the tracer code but it works :cool:
Please log in to rate this scene
edit
Similar scenes
Title: bomb v2 (Scripted)
Rating: 5
Filesize: 20.35 kB
Downloads: 468
Comments: 0
Ratings: 1
Date added: 2011/01/22 00:28:25
Made with: Phun
Rating: rated 5
download
Title: Faytree's unpleasant pill-bomb
Rating: 5
Filesize: 51.98 kB
Downloads: 640
Comments: 0
Ratings: 1
Date added: 2015/08/08 07:14:28
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Bomb v4
Rating: 5
Filesize: 21.71 kB
Downloads: 683
Comments: 0
Ratings: 1
Date added: 2011/02/27 01:17:38
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Scripted Bomb V2 (read desc)
Rating: 5
Filesize: 34.78 kB
Downloads: 647
Comments: 0
Ratings: 1
Date added: 2010/09/26 04:39:39
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: BOMB try it read description
Rating: 5.1765
Filesize: 78.81 kB
Downloads: 3333
Comments: 5
Ratings: 11
Date added: 2010/01/07 20:46:46
Made with: Phun
Rating: rated 5.2
download
Title: scripted water bomb
Rating: 5
Filesize: 4.01 kB
Downloads: 255
Comments: 0
Ratings: 1
Date added: 2011/04/08 21:34:43
Made with: Algodoo before v1.8.5
Rating: rated 5
download
nice scene :tup:
Last edited at 2010/11/18 15:54:47 by lior1997
stupid script to long use (e)=>{ for(200, (i)=>{ scene.addcircle({ and the density and such in this }) }) } spawns 200 circles :tup: if you want to learn more go to this link and add my msn or skype or ask in comment http://www.algodoo.com/algobox/details.php?id=48915
which button to explode?:(
it not explose, sucks !
Last edited at 2011/06/25 12:28:50 by Heinz Doofenshmirtz