Combustive Concept!

Discuss scenes and videos made with Algodoo.

Combustive Concept!

Postby Nitrogen_Dioxide » Sun May 03, 2015 5:57 pm

I made a pickup that is moved by.... circles, each circle have a life and is consumed by an laser. When it is consumed, it sends power, when you acelerates, the circles are consumed fast, plus, more power.
Link:
Rating: rated 5
Filesize: 126.48 kB
Comments: 1
Ratings: 1
download

Please comment what you think about the scene, rate and share.
I'm planing to make more combustive types.

Here is the yellow combustive script:


Spoiler: show
onHitByLaser = (e)=>{
scene.my.liveA = 1000.0;
scene.livea = 0;
scene.livea = livea;
livea = scene.my.liveA;
onCollide = (e)=>{
scene.my.fuel = 2;
scene.my.maxrpm = 31.415928;
scene.my.torque = 300
};
onHitByLaser = (e)=>{
livea = livea - scene.my.acel;
color = [1.0, 0.83, 0.0, livea / 1000];
scene.addCircle({
radius := 0.08;
density := 0.0015;
restitution := 0.5;
friction := 0.5;
pos := e.pos + [0, 0.2];
colorHSVA := [304.96143, 0.0, 0.4, 0.7];
edgeBlur := 0.05;
collideSet := 128;
drawCake := false;
timeToLive := math.sin(sim.time * 80) > 0.0 ? 2 : 3;
angvel = math.sin(sim.time * 80) > 0.0 ? 3 : 1;
zDepth := 1;
friction := 0;
restitution := 0
});
density = livea < 0.0 ? 0 : 2
}
}


Prints:


Thanks for downloading! ps: arrow keys to move.
Member since 2011/01/17 in algobox.
http://www.algodoo.com/algobox/profile.php?id=8380
The username is very old, I want to change it.
User avatar
Nitrogen_Dioxide
 
Posts: 1
Joined: Mon Mar 09, 2015 3:06 am

Return to Scenes

Who is online

Users browsing this forum: No registered users and 13 guests