gas and liquid emitters/pipes

Suggest changes and improvements to Algodoo.

gas and liquid emitters/pipes

Postby DeLaguna » Fri Oct 17, 2014 7:29 am

I think that pipes or emitters would be very helpful.

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

Postby Kilinich » Fri Oct 17, 2014 2:49 pm

Not gonna happen :|
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: gas and liquid emitters/pipes

Postby icrls984 » Wed Nov 05, 2014 1:48 am

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.
.
User avatar
icrls984
 
Posts: 80
Joined: Thu Jun 13, 2013 6:33 am

Re: gas and liquid emitters/pipes

Postby DrAgon » Sat Nov 22, 2014 3:27 pm

Hello, i have made the corresponding pond with a pipe:
its scene 91414 in algobox.

Rating: rated 5
Filesize: 69.61 kB
Comments: 0
Ratings: 1
download


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!
:P
User avatar
DrAgon
 
Posts: 31
Joined: Tue Feb 12, 2013 4:03 pm

Re: gas and liquid emitters/pipes

Postby Nepper » Sat Apr 30, 2016 1:20 am

Very good!!! Good work!!! :clap: :clap: :clap: :clap: :clap: :thumbup:

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 :roll:
Nepper
 
Posts: 1
Joined: Sat Jul 18, 2015 3:22 am


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 5 guests