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

Views: 1121

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: Scripted Bomb (read desc)
Rating: 5
Filesize: 26.71 kB
Downloads: 577
Comments: 2
Ratings: 1
Date added: 2010/09/26 01:17:53
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Simple Scripted Bomb
Rating: 7.8823
Filesize: 195.93 kB
Downloads: 2998
Comments: 4
Ratings: 11
Date added: 2010/07/17 10:00:50
Made with: Algodoo before v1.8.5
Rating: rated 7.9
download
Title: Scripted bomb
Rating: 5
Filesize: 125.52 kB
Downloads: 2181
Comments: 0
Ratings: 1
Date added: 2017/03/12 00:52:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: HE.BOMB
Rating: 5
Filesize: 23.34 kB
Downloads: 292
Comments: 4
Ratings: 1
Date added: 2010/10/11 19:54:07
Made with: Phunlet
Rating: rated 5
download
Title: BOMB try it read description
Rating: 5.1765
Filesize: 78.81 kB
Downloads: 2976
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: 208
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