What is bad?

About advanced scenes, and the Thyme scripting language used in Algodoo.

What is bad?

Postby JackPL » Sat Mar 13, 2010 6:17 pm

Code: Select all
(e)=>{
    Scene.addCircle({         radius := 0.50999999;         density := 5.0;         vel := scene.my.angle * 70;         pos := scene.my.pos;         restitution := 0.5;         friction = 0.5;         airfrictionmult =  - 40;         color := [1.0, 1.0, 1.0, 1.0];         airFrictionMult = 0;         scene.my.bull = scene.my.bull - 1;         texture = Bull.png;         textureMatrix = [0.22242196, 0.0, 0.83490181, 0.0, 1.1778336, 0.51126742, 0.0, 0.0, 1.0];         drawCake = false;         drawBorder = false     });     Scene.addBox({         size = [1.0, 3.0];         density := 5.0;         vel := scene.my.angle * 70;         pos := scene.my.pos2;         restitution := 0.5;         friction = 0.5;         color := [1.0, 1.0, 1.0, 1.0];         airFrictionMult = 0;         texture = "Bull.png";         textureMatrix = [0.22242196, 0.0, 0.83490181, 0.0, 1.1778336, 0.51126742, 0.0, 0.0, 1.0];         drawBorder = false     }) }


Texture is on spawning object, not on spawned one.... why?!

Must work in Algodoo and Phun.
JackPL
 
Posts: 10
Joined: Sun Jan 10, 2010 5:51 pm

Re: What is bad?

Postby Mr_Stabby » Sat Mar 13, 2010 6:45 pm

:=
Mr_Stabby
 
Posts: 155
Joined: Wed Dec 16, 2009 12:16 am

Re: What is bad?

Postby cellers » Sat Mar 27, 2010 6:20 pm

use := , not '='
Russian Elite Forces :D
Now, in case of war, I can go to Airborne.

Image
User avatar
cellers
 
Posts: 145
Joined: Fri Mar 26, 2010 5:32 pm
Location: Russian Federation


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests