Fluid Physics

Discussion and feedback on Construct 2

Post » Sat Aug 18, 2012 7:27 pm

Hello, can I just ask, are true fluid physics planned in a future update of Construct 2? I see that GameMaker Studio has them, see here.

http://www.youtube.com/watch?v=YF_gaohyMW0&feature=related

It would be cool to see our favourite program support this feature too.

Also, is it possible to simulate reverse gravity for things like balloons already in C2 whilst still maintaining normal gravity for other objects.

Thanks for reading.

Jason.
B
35
S
4
G
8
Posts: 65
Reputation: 6,106

Post » Sat Aug 18, 2012 7:41 pm

I don't think it's real liquid physics, because it never settles flat. It's most likely lots of small round physics objects with an effect applied to make it visually look liquid-like. You can probably do the same in C2.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Sat Aug 18, 2012 8:02 pm

I noticed that too.
Real water physics would be nice though.
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sat Aug 18, 2012 10:51 pm

I had to trick a bit but once we get shaders this will look even better and will probably run smoother :D



Hold down the left mousebutton for a few seconds.

Kinda hard on the performance but i like the result...heh

Demo:
https://dl.dropbox.com/u/45711709/liquid/index.html

Capx:
https://dl.dropbox.com/u/45711709/liquid/liquid.capx Ize2012-08-18 23:00:17
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Sat Aug 18, 2012 11:10 pm

Yeah, it figures game maker would cheat like that ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Aug 19, 2012 4:43 am

Wouldn't it be better if you made the dots smaller? I think it would look more liquid.

Also, those are definitely not real liquid physics. Though it would be nice to have them.
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Sun Aug 19, 2012 5:40 am

I created something similar to this as well! Mine was inspired by a level from Gradius V for the PS2. I'm pretty sure they did it the same way.

Goo CAPX
Hold Space for Goo.
Hold Right-Click for Lasers.Zero62012-08-19 05:41:08
B
13
S
4
Posts: 117
Reputation: 2,242

Post » Sun Aug 19, 2012 5:06 pm

[QUOTE=VampyricalCurse] Wouldn't it be better if you made the dots smaller? I think it would look more liquid.

Also, those are definitely not real liquid physics. Though it would be nice to have them.[/QUOTE]
The performance is already a problem with large dots, small dots would look more like water but you'd barely be able to see it and the frames would start dropping.
B
21
S
14
G
5
Posts: 106
Reputation: 3,416

Post » Mon Aug 20, 2012 4:22 am

This is cool -- pretty similar to the effect in Gradius. Wasn't able to get it to drop frames before filling the container area, I'm guessing because the physics calculation is less complex than in Ize's example. It gives me an idea for simulating a stream of water without revealing the individual droplets.

Something to experiment with when it's not past 4 in the morning, I guess.
B
15
S
3
G
5
Posts: 26
Reputation: 4,437

Post » Mon Aug 20, 2012 6:19 am

Good job to both Ize and Zero6.
Zero, the goo doesn't settle though, it would be nice if it settled like liquid!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Next

Return to Construct 2 General

Who is online

Users browsing this forum: EpicPixel, glerikud and 15 guests