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

Image:
screenshot of the scene

Author: DarkNova

Group: Default

Filesize: 74.08 kB

Date added: 2014-11-04

Rating: 5

Downloads: 557

Views: 374

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

What the text box says...

I'll try to make a plane that drops off the bomb after the question is answered...
Last edited at 2014/11/04 20:57:59 by DarkNova
Please log in to rate this scene
edit
Similar scenes
Title: Scripting tutorial
Rating: 5.8334
Filesize: 23.05 kB
Downloads: 2071
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: Basic Scripting Scene A lot of things that run on scripts!!!!!
Rating: 5.4444
Filesize: 39.95 kB
Downloads: 601
Comments: 2
Ratings: 3
Date added: 2009/11/11 00:56:33
Made with: Phun
Rating: rated 5.4
download
Title: Scripting fault!
Rating: 5
Filesize: 14.86 kB
Downloads: 355
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: 303
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: 515
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: 309
Comments: 0
Ratings: 1
Date added: 2017/12/16 17:18:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
You can spawn any object this way:
1. Select the object you want to spawn.
2. While the object is highlighted, press Ctrl-C keys (copy).
3. Go into script menu of the spawn generator object (in this case it's the circle that gets bumped by the box).
4. In the onCollide script area: (e)=>{add script here} place your cursor between the curly brackets (where I wrote "add script here") and press Ctrl-V (Paste). If there is other script already in that spot, delete it first.

That's it! Each time the box collides with the circle, another object will spawn in the original x/y position. You can make the objects spawn in different positions, but that requires that you modify the pos x and y positions.
Just wanted to say exactly the same thing. Found that way of scripting by random, and it's very usefull for quickly scripting 1 or multiple things with many attributes
@Xray Thanks for the help!:)
For some reason it doesn't spawn properly... Whenever the bomb goes off the ball doesn't go up but just stays and when it blows up the tracers don't go off like the first model.
Now you need to take off your "design hat" and put on your "debugging hat"! :)