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

Views: 230

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: Versatile Fuel Script*NOW WITH ENGINE!*(Read Description)
Rating: 5
Filesize: 83.41 kB
Downloads: 423
Comments: 0
Ratings: 1
Date added: 2015/05/21 00:10:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: XY MECHANISM
Rating: 5
Filesize: 445.89 kB
Downloads: 521
Comments: 0
Ratings: 1
Date added: 2013/12/11 03:58:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: demonstration of deformation
Rating: 5
Filesize: 336.51 kB
Downloads: 536
Comments: 0
Ratings: 1
Date added: 2014/01/06 10:51:55
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Air Friction Demonstration
Rating: 5
Filesize: 35.79 kB
Downloads: 277
Comments: 0
Ratings: 1
Date added: 2015/09/23 06:11:43
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Blood Pressure Demonstration
Rating: 4.75
Filesize: 28.35 kB
Downloads: 430
Comments: 0
Ratings: 4
Date added: 2008/07/01 05:17:14
Made with: Phun
Rating: rated 4.8
download
Title: Construction key/lock demonstration
Rating: 5
Filesize: 230.65 kB
Downloads: 778
Comments: 0
Ratings: 1
Date added: 2022/11/15 03:32:53
Made with: Algodoo v2.1.0
Rating: rated 5
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.