PDA

View Full Version : Poison water



arturochaves
11-05-2012, 09:38 AM
Hi community!

Im trying to make a make a level, where Sackboy die if he touch the water... its that posible? I read something about makeing it with gas, but I dont know if there is a easy solution.

The Idea is make the water comming up, so you have to be hurry and go up before the water catch you... so if I do with gas, can I move the gas for steps (the water move up depending where you are, where there is a save point, then I make the water go up until this point (I mean, the point is not to fall on the water more than the water catch you,... i guess :P

ChrisF2112
11-05-2012, 04:19 PM
Yup definitely possible, and your information about the horrible gas was spot on. Just put a layer of horrible gas right at the waters surface and the player will die if they touch the water. In order to get the horrible gas to move with the water without specially coding each location, you'll need some more advanced logic.

What I would do is create a long strip of horrible gas that will go across all the locations you want to have your level (and therefore your water hazard). I'd glue an invisible hologram or sticker panel to this that will control the height of the horrible gas depending on the height of the water.

To do that you'll need two water sensors, one slightly above the other. When the top one is on, the entire piece will move upwards until it is no longer on. If the bottom one is not on, the entire piece would have to move down. Thus, the horrible gas is always at the top of the water between the two water sensors. Alternatively, you could make each section have its own horrible gas, which might take a while, depending on how long the level is.

Even easier, just make the player become a sackbot. That would assure death from water as well, but you would have to worry slightly more about respawning, and you would have to deal with the zapped animation.

Slaeden-Bob
11-05-2012, 09:16 PM
What Chris suggests is a great way for making water hazardous. But to make the gas follow the water level, I would simply glue the Horrible Gas to a piece of buoyant material (eg. Cloth). That way the game engine should do all the work for you, and you won't need any advanced logic ;)

ChrisF2112
11-05-2012, 11:08 PM
What Chris suggests is a great way for making water hazardous. But to make the gas follow the water level, I would simply glue the Horrible Gas to a piece of buoyant material (eg. Cloth). That way the game engine should do all the work for you, and you won't need any advanced logic ;)

Or you could do that... Geez, I can't believe I didn't think of that one. :p

arturochaves
11-06-2012, 08:45 AM
Or you could do that... Geez, I can't believe I didn't think of that one. :p

Thanks!

Yesterday I was testing one more time, and I try to do it with piston. I want only that the water go up two times, so I use two piston with two superfices diferents (the water is not in all the level, just in one part). It was really hard :S, but it work more or less, but I think the solution from ChrisF2112 is much easier, I think i will change it, but I dont know if would work, because in the begining there is water but unter the floor, so the pieace of cloth should be ..transparent??... I will take a look,
thanks guys!!

catsand
11-07-2012, 01:28 PM
The piece of cloth will not be transparent, but you can place it in the very far thin layer and shrink it down to the point where it hardly visible and it'll still float with the waves/current.
If you are using a material for the background you can do just as stated above but also change the position of the cloth in the layer to "-20" so that it'll be hidden.
*Do not Dephysicalise the cloth piece.
So as Slaeden-Bob suggested glue the two together.

qwerty123456
01-17-2013, 10:18 PM
You could also just use a basic controllable sackbot. The water will kill it. If you don't know how to make one, then just look it up on your computer!