How do I create realistic splash?

Get help using Construct 2

Post » Wed Dec 10, 2014 7:03 pm

Hi. I would like to create in game realistic, randomly generated paint-like splash. So for example when you throw pain balloon it will splash against the wall. But I would like to use method that wont eat up all the resources. Is there a solution to it? Anyone tried it?
B
10
S
1
Posts: 56
Reputation: 654

Post » Wed Dec 10, 2014 8:09 pm

The easiest way to do it is to have a number of different pre-made splashes.

Just create a new splash, set the frame to a random one (disable animation of course). And maybe randomize the size/rotation as well.
B
18
S
4
G
3
Posts: 30
Reputation: 4,088

Post » Wed Dec 10, 2014 10:04 pm

Yeah, this method wont work for me unfortunately. I need C2 generated splashes due to how the game works and when splashes are generated...

Thanks for suggestion though.
B
10
S
1
Posts: 56
Reputation: 654

Post » Thu Dec 11, 2014 5:13 am

Simplest way I know is to create a sprite that has your splash animation at the point of contact with the water. You throw a rock and it touches the water. at that moment create a sprite at x=Rock(X) Y=Rock(Y) and have it play the splash animation. Then destroy the sprite after the animation.

Or with a balloon hitting the wall, same idea only you could just have your balloon stop at the point of contacting the wall and just play the popping animation and then destroy it after that has run
"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
B
7
S
2
Posts: 113
Reputation: 1,245

Post » Thu Dec 11, 2014 11:15 am

Maybe there's a way to use particles in combination with physics. I'm not an expert so I'm not going to make you an example but it's doable.
B
18
S
4
G
3
Posts: 30
Reputation: 4,088

Post » Thu Dec 11, 2014 2:18 pm

Maybe you could check Paster and Canvas plugins. Do you have any image from the hoped result?
B
34
S
9
G
3
Posts: 517
Reputation: 5,206


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests