How Can I Make Water Effects Like Terraria?

Get help using Construct 2

Post » Sat Aug 31, 2013 1:35 pm

Hi everyone

I am wondering if its possible to create some water effects like terraria even if its at a miniscule scale,I just want water to freely flow like it naturally should even if its at a slow pace.
Im really curious if its possible if someone has any feedback it would be awesome.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sat Aug 31, 2013 10:19 pm

If anyone knows how to make the effect it would help me out alot,I would think that terrarias water effects might be to CPU intensive but what if i could make water like Minecraft where it has a source block and the water is updated every few ticks.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Fri Dec 20, 2013 12:06 pm

Sorry, I can't help you with that. I'm still a beginner. But it would be nice to know. I want to use water in my next project.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 735
Reputation: 9,269

Post » Fri Dec 20, 2013 12:46 pm

@Bl4ckSh33p Awesome! Maybe we both will get some info on this subject.
This original post was made back in august.I still would love to know this myself since the only viable example i found was on Construct Classic.
RookieDev2013-12-20 12:47:29
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Fri Dec 20, 2013 2:56 pm

Try searching again - you've missed a few examples, notably from R0j0hound.

If Advanced search doesn't find anything, use Google with the 'Site:' qualifier.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Fri Dec 20, 2013 6:09 pm

@RookieDev
@Bl4ckSh33p

Forget about making water like Terraria/Minecraft ... For that you will need to have your level structured as array and apply Flood Fill .

Better use this (might be a little CPU intensive):
http://www.youtube.com/watch?v=njUxKvp_KGg

OR

If you mean sine wave effect, R0J0hound made something here:
http://www.scirra.com/forum/1d-water_topic47386.htmlTGeorgeMihai2013-12-20 18:14:35
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Fri Dec 20, 2013 8:01 pm

Hmm, even I had a bit of trouble finding the C2 example I made of 2d minecraft-like water. Here it is:
http://www.scirra.com/forum/what-is-the-attributes-counterpart-in-construct-2_topic79372_post470236.html#470236

Not the easiest to follow but basically all the water motion is done by checking the contents of grid positions around each water square.
I started with something simple like this:
If space below water is empty
then add a new water below.

To further extend it if a wall is below the water then new water is added to the left and right if the spaces are empty. Next to make areas fill up with water I treated water the same as a wall if the water had a wall to it's left, right and bottom. The water shares this info to water left and right. The final step I did was to have the water drain if walls were removed. It isn't 100% perfect but it's good enough.

EDIT:
Hey the capx in the topic was even in reply to RookieDev.
Is terraria water that different? I've never played it.R0J0hound2013-12-20 20:04:35
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Fri Dec 20, 2013 9:45 pm

Thank you very much!
I found another type of water in this video:
https://www.youtube.com/watch?v=nddxfNIuiyg

Does anyone know how it was made?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
55
S
16
G
6
Posts: 735
Reputation: 9,269

Post » Fri Dec 20, 2013 11:44 pm

Basically, it's using particles, on collision it spawns a particle object with one shot.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 39 guests