Struggling with a game mechanic..

Updated on July 18, 2014 in [A] Other Answers
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
7 on July 18, 2014

Okay, so I am making a game with a friend, based around liquids. It’s an endless 2D side-scroller and you control liquid/water. The problem is when I want to create water and move it, like a normal character. The mechanics will be that it will pick up more water as it goes across, and will loose water over time.

Question is, would anybody like to give me an idea with the best way to approach this? Thank you!

  • Liked by
Reply
1 on July 18, 2014

I’m not sure about water, but maybe you could use ‘sand’. I haven’t tried something like this but and it would probably lag badly, but worth saying it.
If you had thousands of tiny spheres with low/no friction, with a rigidbody wouldn’t it work the same?
I’m not quite certain as I’m fairly new to Unity, but maybe it could work 🙂

Helpful
on July 18, 2014

It’s a way of making it work is what I am struggling with. I was thinking of an empty game object that would instantiate a water particle. :/

Show more replies
  • Liked by
Reply
Cancel
1 on July 18, 2014

Here are some ideas that may help you 😀

-Make a Trail with the Trail Renderer to make it look like you are losing water. !
Use a Water Meter to tell the player how much water you have left.
Then put some Water Drops around to fill up the Water Meter.

So If your Water Meter is Full make the Trail of water bigger, and if is empty make it look tiny.

Here I will leave you some info and examples about the Trail Renderer.
Trail Renderer Unity3D

Hope this help you to figure it out 🙂

Helpful
on July 18, 2014

Thank you ever so much! I will try this out and then I will get back to you with results!

Show more replies
  • Liked by
Reply
Cancel
2 on July 18, 2014

You should really make good use of the Shuriken Particle System here (or a custom shader but that would be hard to write). Simply expand the emission sphere + the amount of particles as the water ball grows 🙂

Helpful
on July 18, 2014

Good suggestion actually! Thank you Brackeys!

Guru
on July 18, 2014

No problem man 🙂

Show more replies
  • Liked by
Reply
Cancel