PkR Posted June 14, 2006 Report Share Posted June 14, 2006 Could someone help to create water parallax effect like it's in Hydrocity zone? I tried several ways, but couldn't do that... Seems that I don't know how to position water levels vertically to make them correspond to the water waves. Anyway, I'll remind you of what it looks like: Pay attention to the water levels. Then, we go a bit deeper: See? Finally, we can't see these water levels. And this is when we go deeper. Could anyone help to make that in MMF? Link to comment Share on other sites More sharing options...
LarkSS Posted June 14, 2006 Report Share Posted June 14, 2006 What if the top of the water is an active object and as you go deeper, you resize it vertically to get smaller. Once Sonic is greater or equal to it's Y position, you can make it invisible and reappear the underwater object which resizes itself vertically to get bigger as you go deeper into the water. I never attempted that effect before and this is just an idea. ( Seems like if it's done correctly though it should work ) Link to comment Share on other sites More sharing options...
PkR Posted June 14, 2006 Author Report Share Posted June 14, 2006 I think it can't be resized, as it consists of different levels (separate BG System Boxes, if we make it in MMF), which move with different speed when scrolling to produce horizontal parallax effect. Vertical positioning should be almost the same, but still I can't figure out the proper way Link to comment Share on other sites More sharing options...
LarkSS Posted June 14, 2006 Report Share Posted June 14, 2006 Do you want me to attempt a tutorial of it? I have a feeling that if I tinker with it for a while I may come up with something. Link to comment Share on other sites More sharing options...
Salomon Posted June 16, 2006 Report Share Posted June 16, 2006 I was just going to make a topic asking for help with parallax. It's being a pain in my arse. If you do infact make a tutorial on it I would love it too. Link to comment Share on other sites More sharing options...
MidimanNull Posted June 16, 2006 Report Share Posted June 16, 2006 Ask Xoram, im confident his aim is "xXoramx" he did the exact effect in "Sonic Paralactic Adventure". Link to comment Share on other sites More sharing options...
PkR Posted June 16, 2006 Author Report Share Posted June 16, 2006 Sorry for not replying sooner - been sitting for the exams. Do you want me to attempt a tutorial of it? I have a feeling that if I tinker with it for a while I may come up with something. If so, please do. I would appreciate it. Ask Xoram, im confident his aim is "xXoramx"he did the exact effect in "Sonic Paralactic Adventure". Thanks EDIT:Erm... Just checked out Xoram's game, but failed to find the effect I mentioned above. Link to comment Share on other sites More sharing options...
ssbfalcon Posted June 18, 2006 Report Share Posted June 18, 2006 Hmm... looks like this is where using the overlay method of parallax could come in handy... and I believe you can combine both methods of parallaxing... Yes, I did say I was going to make a tutorial about overlay parallax but that never happened... I never bothered to figure it out yet and was going to save that for the next game project after Sonic's Vacation... Link to comment Share on other sites More sharing options...
PkR Posted June 18, 2006 Author Report Share Posted June 18, 2006 I'm aware of overlay parallaxing method, but I still have no idea how to do that effect in the way shown. Anyway, LarkSS said he has almost done it, so we should wait till he finishes his tutorial. Link to comment Share on other sites More sharing options...
LarkSS Posted June 18, 2006 Report Share Posted June 18, 2006 Sorry that I still don't have it yet. I've been playing STH3 for a bit to see exactly how the water effect works. Then I got caught up in playing STH3 online for awhile and today is father's day but I'll still try to get it done. That reminds me. PkR, I need to talk to you about something. I'll send you a PM. Link to comment Share on other sites More sharing options...
MidimanNull Posted June 18, 2006 Report Share Posted June 18, 2006 Erm... Just checked out Xoram's game, but failed to find the effect I mentioned above. He did send you the engine test from the old forum, right? there's some debug keys that activate water in that build. I cant remember the keys, persay, but theyre probably close to the a/s/d range. Link to comment Share on other sites More sharing options...
Steven M Posted June 18, 2006 Report Share Posted June 18, 2006 Vertical parallax... don't suppose you can use the old "background system box" technique? Link to comment Share on other sites More sharing options...
PkR Posted June 18, 2006 Author Report Share Posted June 18, 2006 He did send you the engine test from the old forum, right? there's some debug keys that activate water in that build. No, he didn't as I've never seen him online. I just found his game's demo on some site, but it didn't have any levels with water. Vertical parallax... don't suppose you can use the old "background system box" technique? Yes, this is the one being used. Just had to figure out the ways of proper vertical positioning. Link to comment Share on other sites More sharing options...
LarkSS Posted June 18, 2006 Report Share Posted June 18, 2006 Here it is: http://sfghqmb.com/attachment.php?attachmentid=30&stc=1&d=1150655344 All I did was edit your paralax effect and made vertical positioning. It works based on how many pixels you are from the water's surface and what position the top of the screen is. Just ask if you have any questions about it. If anyone else is wondering if this is a tutorial, the answer is no. I haven't got to that yet. It doesn't mean you can't look at it though. 2 Link to comment Share on other sites More sharing options...
revolutiongames2004 Posted June 28, 2006 Report Share Posted June 28, 2006 i can give you a formula, take the background's y postition= 1+{room hight}/{view's y postition}.this should work for one of them Link to comment Share on other sites More sharing options...
Rael0505 Posted June 28, 2006 Report Share Posted June 28, 2006 I believe the problem has already been solved. Link to comment Share on other sites More sharing options...
revolutiongames2004 Posted June 29, 2006 Report Share Posted June 29, 2006 ok sorry Link to comment Share on other sites More sharing options...
VectorSatyr Posted June 29, 2006 Report Share Posted June 29, 2006 What about in GM? I'd like to know for future reference. Link to comment Share on other sites More sharing options...
LarkSS Posted June 29, 2006 Report Share Posted June 29, 2006 I don't know much about GM. Maybe someone else might help you... Link to comment Share on other sites More sharing options...
Zal Posted June 29, 2006 Report Share Posted June 29, 2006 Sorry for not replying sooner - been sitting for the exams.If so, please do. I would appreciate it. Thanks EDIT:Erm... Just checked out Xoram's game, but failed to find the effect I mentioned above. Then you're playing the wrong one. The one entitled SPA and has just a plain background with dark blue floor is the one. When you get to the bottom you will find the water effect. Link to comment Share on other sites More sharing options...
revolutiongames2004 Posted June 29, 2006 Report Share Posted June 29, 2006 gamemaker is background_x[6]=view_xview[0]/4;//edit scroll ratios if desired background_y[6]=view_yview[0]/1.08; Below is a double post that has been automagically merged into the original. you can change the 4 and the 1.08 also change the 6 and 0 depending on the view and background # to get it to fit a background on the us the therum above Below is a double post that has been automagically merged into the original. i assume you dont wanna use up all of your backgrounds on this seeing as there are about 4 here and 3 at the top, just put a trigger, basicly {if block} (inwater==1) {start block} {replace background}(use lighter one) inwater=0 {end block} {if block} (inwater==-1) {start block} {replace background} (use darker one) inwater=0 {end block} if u get in the water turn inwater=-1 if u get out of the water turn inwater=1 Link to comment Share on other sites More sharing options...
Recommended Posts