Dynamic Water Example [v0.1]

Learn to use DS Game Maker by Example.

Dynamic Water Example [v0.1]

Postby baron » September 4th, 2013, 12:42 am

I was incredibly bored today, so I decided to try implementing dynamic water in DS Game Maker - here is a quick example of it.

The Example includes dynamic and artificial water. In dynamic mode, when the ball falls into the water, the water will react accordingly. In artifical mode, the water is animated and is not affected by the ball.

Dynamic mode works by checking the VY variable of the Ball Object, and changing. It uses 16 bit drawing, so alot of VRAM (3/4th) is already used, so be careful!

Controls:
DPad - Move and Jump
A - Switch between modes

Screenshots:
Image Image

I plan on updating this in the future.

Things to Fix:
-Flickering of the water
-Alter the variable types
-Add more comments

P.S. I have no idea whether or not I'm using the word, 'dynamic' in the right context, so my apologies.
Attachments
2DDynamicWaterExample.nds
v 0.9. Extremely buggy, but proof of concept.
(286.06 KiB) Downloaded 298 times
2DDynamicWater.dsgm
(4.65 KiB) Downloaded 289 times
Have you played Sliker DS?

There's this cool new Android game that you should totally play.

http://officeofstrategicinfluence.com/spam/
User avatar
baron
Site Admin
 
Posts: 177
Joined: December 30th, 2010, 9:54 pm
Location: London, England

Re: Dynamic Water Example [v0.1]

Postby baron » September 4th, 2013, 12:19 pm

In the example, I set the nodewidth to 2, so each node is two pixels wide. You can set nodewidth to 1 and it should look smoother.

I going to adjust the code so the splashing isn't as pixelated (terrible coding on my part).
Have you played Sliker DS?

There's this cool new Android game that you should totally play.

http://officeofstrategicinfluence.com/spam/
User avatar
baron
Site Admin
 
Posts: 177
Joined: December 30th, 2010, 9:54 pm
Location: London, England

Re: Dynamic Water Example [v0.1]

Postby Buck_7 » September 4th, 2013, 10:27 pm

It looks okay. I don't like that DBAS language though :|

oh - and maybe you should've used a 16c background instead; I read it takes almost half less space in the Vram...
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: Dynamic Water Example [v0.1]

Postby baron » September 4th, 2013, 11:06 pm

Buck_7 wrote:It looks okay. I don't like that DBAS language though :|

Someone has to use it!

Buck_7 wrote:oh - and maybe you should've used a 16c background instead; I read it takes almost half less space in the Vram...

Thanks for the input. I'll look into them when I update this.

Edit: Using 16c would require an overhaul to the drawing code as it's missing a specific function that 16bit has, so it won't be feasible (read: too much effort). Also, I currently don't possess a working flashcart or DS so I would appreciate it if someone could test the .nds file and see if it works correctly. Thanks.
Have you played Sliker DS?

There's this cool new Android game that you should totally play.

http://officeofstrategicinfluence.com/spam/
User avatar
baron
Site Admin
 
Posts: 177
Joined: December 30th, 2010, 9:54 pm
Location: London, England

Re: Dynamic Water Example [v0.1]

Postby kael » August 30th, 2014, 3:16 pm

I see this thread is old but it doesn't matter, I personally think this "real water" is just unvealivable!
I hope I can accomplish something like this someday. Congratulation to the creator!
kael
 


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron