Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

Hydrocity Ocean Effect (Game Maker 6)


Chaos Rush

Recommended Posts

Okay, does anybody remember how in Hydrocity zone of Sonic 3, the water has a 3D effect? I was wondering how you could do that in Game Maker 6. For those of you who have no idea what I just said, I'll put it easier: Remember how in Demo 2.9 of SA:R, the water in the backround has a 3D effect? Anyways, I'm wondering how I could do the special, "Sonic3 Hydrocity" water effect.

Anyways, I tried making the effect using Parallax, but I a tiny bit of success.

background_x[0] = view_xview[view_current]*-0.01;
background_x[1] = view_xview[view_current]*-0.03;
background_x[2] = view_xview[view_current]*-0.05;
background_x[3] = view_xview[view_current]*-0.07;
background_x[4] = view_xview[view_current]*-0.09;
background_x[5] = view_xview[view_current]*-0.11;
background_x[6] = view_xview[view_current]*-0.13;
background_x[7] = view_xview[view_current]*-0.15;
background_y[0] = view_yview[view_current]*-0.00+495;
background_y[1] = view_yview[view_current]*-0.03+495;
background_y[2] = view_yview[view_current]*-0.05+496;
background_y[3] = view_yview[view_current]*-0.07+494;
background_y[4] = view_yview[view_current]*-0.09+495;
background_y[5] = view_yview[view_current]*-0.11+493;
background_y[6] = view_yview[view_current]*-0.13+492;
background_y[7] = view_yview[view_current]*-0.15+492;

I tried putting that code in the Step Event, but it doesn't exactly work correctly.

ddorkj.png

As you can see, it looks fine. But when I get out of the water, I don't see the top of the ocean, I only see what it would look like under, or I don't see it at all.

All help is appreciated.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...