gas and liquid emitters/pipes
5 posts • Page 1 of 1
gas and liquid emitters/pipes
I think that pipes or emitters would be very helpful.
For air helium water oil to start... petrol maybe..
For air helium water oil to start... petrol maybe..
- DeLaguna
- Posts: 1
- Joined: Fri Oct 17, 2014 7:24 am
Re: gas and liquid emitters/pipes
By emitters you mean spawners? Because you can make a simple circle spawning script... and making them spawn "air", "helium", etc, isn't that hard.
.
-
icrls984 - Posts: 80
- Joined: Thu Jun 13, 2013 6:33 am
Re: gas and liquid emitters/pipes
Hello, i have made the corresponding pond with a pipe:
its scene 91414 in algobox.
Balls are created in the hollow purple box, and are
liquified if they contact the tube.
In the lever is a script which sets variable scene.my.lever to true
or false, which turns the pond on or off.
You can delete the red balls, they are only for
demonstration that red balls are not liquified.
If you want to enhance the flow of water, you can
enter the script of the solid purple box, where
you can reduce the number 20 to any smaller number
greater then 1, then turn of and on again to restart
the pond.
---some script:
the lever turns the pond on or off: (poststep)
the solid purple box controlls the creation of balls after "counter" (which is 20 ) ticks:
and finally the lower part of the tube transforms blue balls into water (on collide)
if you alter the 20 to other numbers you can increase or decrease the flow .
have fun!
its scene 91414 in algobox.
Balls are created in the hollow purple box, and are
liquified if they contact the tube.
In the lever is a script which sets variable scene.my.lever to true
or false, which turns the pond on or off.
You can delete the red balls, they are only for
demonstration that red balls are not liquified.
If you want to enhance the flow of water, you can
enter the script of the solid purple box, where
you can reduce the number 20 to any smaller number
greater then 1, then turn of and on again to restart
the pond.
---some script:
the lever turns the pond on or off: (poststep)
- Code: Select all
(e)=>{
{
e.this.angle <= 0
} ? {
scene.my.lever = true
} : {
scene.my.lever = false;
scene.my.counter := 0
}
}
the solid purple box controlls the creation of balls after "counter" (which is 20 ) ticks:
- Code: Select all
(e)=>{
{
scene.my.lever
} ? {
{
scene.my.counter == 20
} ? {
scene.addcircle({
radius := 0.08;
pos := e.this.pos + (0, 1);
vel = [0.1, 0.1];
color := [0.0, 0.0, 1.0, 1.0];
drawcake := false;
collideset := 1;
restitution = 1
});
scene.my.counter := 1
} : {
scene.my.counter := scene.my.counter + 1
}
} : {}
}
and finally the lower part of the tube transforms blue balls into water (on collide)
- Code: Select all
(e)=>{
{
e.other.color(2) == 1
} ? {
e.other.liquify
} : {}
}
if you alter the 20 to other numbers you can increase or decrease the flow .
have fun!
-
DrAgon - Posts: 31
- Joined: Tue Feb 12, 2013 4:03 pm
Re: gas and liquid emitters/pipes
Very good!!! Good work!!!
Es exactamente lo que necesitaba. Es una lástima que no sepa buen ingles para entablar una buena conversación.
It is exactly what I needed . It's a shame not know good English to engage in a good conversation.
(Google translate)
I only need the liquid behaves like a gas or vapor
Es exactamente lo que necesitaba. Es una lástima que no sepa buen ingles para entablar una buena conversación.
It is exactly what I needed . It's a shame not know good English to engage in a good conversation.
(Google translate)
I only need the liquid behaves like a gas or vapor
- Nepper
- Posts: 1
- Joined: Sat Jul 18, 2015 3:22 am
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests