Browse Search Popular Register Upload Rules User list Login:
Search:
eat script demonstration

Image:
screenshot of the scene

Author: aus2006

Group: Default

Filesize: 18.04 kB

Date added: 2017-09-13

Rating: 5

Downloads: 491

Views: 316

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

this demonstration shows how a eater script would work in algodoo
if you are going to use these, give me credit, i did script these myself
Last edited at 2017/09/13 21:28:07 by aus2006
Please log in to rate this scene
edit
Similar scenes
Title: XY MECHANISM
Rating: 5
Filesize: 445.89 kB
Downloads: 603
Comments: 0
Ratings: 1
Date added: 2013/12/11 03:58:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: phun beta 4: pen demonstration
Rating: 5.5
Filesize: 14.11 kB
Downloads: 222
Comments: 9
Ratings: 6
Date added: 2008/06/27 16:20:03
Made with: Phun
no image found for this scene
Rating: rated 5.5
download
Title: demonstration of deformation
Rating: 5
Filesize: 336.51 kB
Downloads: 592
Comments: 0
Ratings: 1
Date added: 2014/01/06 10:51:55
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Physics - Bouncing Experiment
Rating: 5.6667
Filesize: 0.55 MB
Downloads: 10125
Comments: 5
Ratings: 3
Date added: 2011/05/06 14:31:43
Made with: Algodoo before v1.8.5
Rating: rated 5.7
download
Title: Construction key/lock demonstration
Rating: 5
Filesize: 230.65 kB
Downloads: 1011
Comments: 0
Ratings: 1
Date added: 2022/11/15 03:32:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Moteur HD simple demo
Rating: 5.625
Filesize: 1.45 MB
Downloads: 1955
Comments: 2
Ratings: 2
Date added: 2013/03/28 22:18:58
Made with: Algodoo v2.0.1
Rating: rated 5.6
download
I think you need to learn more about Algodoo scripting because the blocks and the ground (plane) do not have any defined names in them. For example, you say "foodsource is in food blocks" but I do not see a variable named "foodsource" in any of the food blocks. Also, you say the ground has a custom material name, but it does not. The material name is "" (which is just an empty placeholder for text).

As a general rule, you should never not define a variable and then later check to see if it was defined. That is poor programming practice. You should define all variables, and give them some initial value such as 0 (zero). Then in the script, you can check to see if the variable's value is zero or some non-zero number.

If you have any technical questions about scripting, ask me here and I will try to answer them for you.
Last edited at 2017/09/21 22:19:49 by Xray
thats kind of strange, how the variables didnt appear, i swear i added them before posting the scene
You used [VarName] = [varValue] didn't you?
Do scene.my.[varName] = [varvalue] instead.
The first variable will not save with the scene.
The second is serialized (how do you spell that?!) and will save in the scene.