How do I make "drowning" for water/liquids for a platformer?

Get help using Construct 2

Post » Tue May 06, 2014 11:48 pm

I had the idea to make a scrolling platformer that has you jumping from spinning wheels for as long as you can without dying. Originally I had the idea to have slowly rising lava at the bottom that would destroy the player sprite on collision, but I showed the demo to a friend and said that was really similar to a flash game that he played once. So we both came up with the idea of water that doesn't instantly kill you, but lowers your jump height and would destroy the player sprite after say, 6-10 seconds. I'm not sure how I could do this though.
Posts: 1
Reputation: 505

Post » Tue May 06, 2014 11:56 pm

If you have the trigger >PlayerSprite is overlapping WaterSprite< and the trigger >Wait 6-10 seconds< as a sub event that starts when trigger one is active next to the second trigger do what your planing for the drowning. Example, add the drowning animation and set player health to 0.
"Were all mad here. I'm mad, your mad." "How do you know I'm mad?" Asked Alice. "You must be" Said the Cheshire Cat. "Or you wouldn't have come here"-Lewis Carroll: Adventures In Wonderland
Posts: 113
Reputation: 1,295

Post » Wed May 07, 2014 3:21 am

Or if you want them to only drown when they are below the surface of the water you can put the image point at the top and then test to see if teh players Y coordinate is below the waters Y coordinate. Or Put an invisible sprite at the water level and then trigger the drowning behavior when the player's Y is below the invisible sprites Y and they are overlapping the water sprite.
Posts: 1,833
Reputation: 14,648

Post » Wed May 07, 2014 7:44 pm

To make the jump and walk more slow on the water :

player is overlapping water --- set jump to 300
Else ----- set jump to 600
Posts: 1,013
Reputation: 9,165

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest