Underwater Surface Distortion?
Posted 17 June 2012 - 03:19 AM
I found a good example here: http://gmc.yoyogames...howtopic=435740
but the problem is that it does the effect on the whole screen as if the water is that big.
what i tried to do is have the effect shown only on the water thats in parts of the level.
to make it easier for you to understand all this...
what i have is this:
what i want is this:
Posted 17 June 2012 - 04:27 AM
Posted 30 June 2012 - 04:02 AM
It took me a week to figure this out but I finally got it to work. I tried to change the coordination and dimension of the water effect and I got was the water effect showing the whole screen on it. So what I did to fix that (this is for anyone that has this similar problem) was erase all the changes I made in the code and in the draw event change:
Change the dimensions of the surface or only draw part of the surface. I didn't look at what you linked to, but from what I remember reading once (probably actually the same thread), it uses surfaces, so that's the solution.
draw_surface_part(surf_draw,x-view_xview,y-view_yview,("Water Object").sprite_width,("Water Objects Floor").y-("Water Object").y,x,y)
That way you only get the water effect only at the places that have a water area.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users