How do I animate water in a pipe

Get help using Construct 2

Post » Thu Apr 17, 2014 9:03 am

I'd like to make a pipe game similar to http://pipetrouble.com/
I don't have idea how to make that water move fluently?
Any ideas? Should I use any plugin?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Thu Apr 17, 2014 2:33 pm

tecbug I done little CAPX for you it's not that great but you will gave good idea how to do stuff your ways. This is simple
You do not have the required permissions to view the files attached to this post.
B
245
S
39
G
15
Posts: 1,941
Reputation: 40,246

Post » Fri Apr 18, 2014 10:38 am

Thank you for example. Unfortunately it doesn't solve the problem because:
- pipes will be placed at different angles (not only 90 deg.)
- and this isn't very smooth.
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Fri Apr 18, 2014 11:40 am

I will see what I can do for you. At the moment grandsons need looking after as they have ester holiday. Once I have time I will help you out much as I can.
B
245
S
39
G
15
Posts: 1,941
Reputation: 40,246

Post » Fri Apr 18, 2014 8:22 pm

Here is a way to do it very smooth, although not terribly useful in your case.
https://dl.dropboxusercontent.com/u/542 ... /pipe.capx

For your idea just break it down into smaller problems.
* For any given pipe section you need a way to find connected pipes. My capx did it by storing the uids, but you'll probably want to do it with an overlap check since you'll be adding sections when the game is running.

*After that the filling is much easier. You can do a method like I did or just make an animation for each section of the pipe filling from either direction. Then starting with some pipe, set it to fill. When it's full start filling the connected section.
B
91
S
31
G
103
Posts: 5,234
Reputation: 67,754


Return to How do I....?

Who is online

Users browsing this forum: wizdigitech, Zamargo and 14 guests