Browse Search Popular Register Upload Rules User list Login:
Search:
4 Stroke LDA-2 Mk2 Tractor

Image:
screenshot of the scene

Author: Kwestionable

Group: Default

Filesize: 195.08 kB

Date added: 2017-06-22

Rating: 5

Downloads: 1548

Views: 244

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Details in scene
Please log in to rate this scene
edit
Similar scenes
Title: Farm Tractor and Trailer 2
Rating: 4.75
Filesize: 476.56 kB
Downloads: 1313
Comments: 8
Ratings: 2
Date added: 2013/06/06 13:10:26
Made with: Algodoo v2.1.0
Rating: rated 4.8
download
Title: Almost two stroke engine
Rating: 5.375
Filesize: 54.89 kB
Downloads: 1423
Comments: 2
Ratings: 2
Date added: 2009/07/24 20:09:44
Made with: Phun
Rating: rated 5.4
download
Title: Two Cylinders Fuel Smoke Tractor
Rating: 6.1111
Filesize: 313.11 kB
Downloads: 4170
Comments: 0
Ratings: 3
Date added: 2014/03/07 19:13:11
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Title: Steyr 8070 Tractor
Rating: 7.6667
Filesize: 200.65 kB
Downloads: 686
Comments: 5
Ratings: 9
Date added: 2009/03/10 18:47:18
Made with: Phun
Rating: rated 7.7
download
Title: Tractor Phunlet
Rating: 7.2857
Filesize: 42.98 kB
Downloads: 741
Comments: 2
Ratings: 7
Date added: 2008/06/28 16:30:18
Made with: Phun
Rating: rated 7.3
download
Title: I4 1.6L 90HP Spawn Engine
Rating: 5
Filesize: 48.74 kB
Downloads: 1322
Comments: 0
Ratings: 1
Date added: 2022/06/23 23:56:33
Made with: Algodoo v2.1.0
Rating: rated 5
download
You forgot to declare the variables... at least Scene.my.power. It doesn't work as it is now. Also, on the fuel's timeToLive, you used e.geom. to refer to the fuel itself, and you used colons. That is wrong, colons are only used when you define the variable for the first time, i.e. when you spawn the fuel. After you spawn the fuel you don't have to use them, or you'll have a myriad of errors. Try making the engine work and opening the console...
Also another thing, e.pos is crap, it always gives back the position of the event but one step late. this makes stuff spawn outside of where you want it to spawn. Always use pos or e.other.pos whenever you can, those two work
This would be the corrected code, with some tweaks from myself (didn't change e.pos though, you'll have to see what to do since it doesn't work well with pos):

(e)=>{
scene.addCircle({
radius := 0.0125;
density := 0.01;
restitution := 0;
friction := 0.0;
refractiveIndex := 1.5;
pos := e.pos;
colorHSVA := [90.0, 0.56, 1.0, 0.3];
drawCake := false;
vel := entity.vel;
timetolive := 2;
heteroCollide := false;
collideSet := 5;
zDepth := 100;
onHitByLaser := (e)=>{
e.geom.density = {
scene.my.power * 200
};
e.geom.timetolive = 0.01;
e.geom.collideSet = 3;
e.geom.radius = {
scene.my.power
};
e.geom.friction = 0;
e.geom.colorHSVA = [25.0, 1.0, 1.0, 0.5];
e.geom.onDie = (e)=>{
scene.addCircle({
radius := 0.025;
density := 0.001;
restitution := 0;
friction := 0.0;
refractiveIndex := 1.5;
pos := e.this.pos;
colorHSVA := [0.0, 0.0, 0.0, 10];
edgeBlur := 0.5;
drawCake := false;
vel := entity.vel;
timetolive := 5;
heteroCollide := false;
collideSet := 9;
zDepth := 100;
friction := 0;
airFrictionMult := 1
})
}
}
})
}
One more thing: you're welcome to upload any scenes you want to our alternative site, algo.boards.net. You don't even need to upload the scene, you can get the scene ID here (it's in the url: 160696) and use it there to get a direct download link

It's not really operative yet since we're like 5 guys there, but the idea is for us to upload our meaningful scenes and get people to see them whenever they get there. Like a Popular scenes page but with our best scenes.
Thanks for the input, I'll try to remake it and fix the code. I'm a terrible scripter, in fact this fuel code was copy and pasted and I've just tweaked some of the variables:D.