Filling A Room With Air

Get help using Construct 2

Post » Mon Sep 17, 2012 7:55 pm

Hello all,

So, I was wondering how I might go about doing something. What I would like to do, ultimately, is create an atmospherics type system for a spaceship, which includes keeping track of how much air there is in any given room.

How would you go about doing this? If there is a hull breach, then obviously the air would get sucked out of the room. But how about pumping air back into it (assuming there are appropriate pipe connections)?

What makes it a bit more complicated is the fact that if a door to a room is open to, say, a hallway, and a hull breach occurs inside the room, it should suck all of the air out of the room AND hallway, but if the door is sealed, then only the hallway should re-pressurize.

Any tips on how to go about such a system would be greatly appreciated. Thanks!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Mon Sep 17, 2012 7:58 pm

http://en.wikipedia.org/wiki/Cellular_automaton

Your life for the next few months will revolve around celluar automata.

(Unless @Yann shows up and gives an impossibly amazing example)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Sep 18, 2012 1:37 am

looks like flood fill to me
http://en.wikipedia.org/wiki/Flood_fill
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Sep 18, 2012 2:15 am

The Flood Fill looks more accurate, thanks for that link :)
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Tue Sep 18, 2012 2:20 am

Not sure a flood fill would completely satisfy what you want. But what do I know ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Sep 18, 2012 3:02 am

I think it would work best in so far as it serves its ultimate function, which is to regulate o2 or other gasses in confined/non-confined spaces, and seems a hell of a lot easier to come up with some way to implement it as well :) Thank you for the suggestions!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Scofano and 22 guests