Damizean Posted November 27, 2006 Report Share Posted November 27, 2006 Here's a new parallax engine I first made as proof of concept demo for TDR, but I though it was good enough to give it to everyone. What is different about this parallax engine from others it's the fact it calculates the optimal size for the Background System Boxes, resulting in better perfomance and sexyness in-game, as it doesn't need large 10000x10000 boxes. This method also seems to fix the precission problem with ultra large levels, so you now can do a level of the size you want!The engine itself does mostly all the work for you. It gets the Background System Box pieces that are under the group "Group.99", and create theirs values based on how they're positioned in the editor. After this, you'll only need to input a X and Y Scroll Relation Factor values and X Scroll and X Scroll Speed (if you want to do stuff like Moving Clouds or Water Ripple). It comes with a GHZ example, so enjoy it and have fun! P.S. There's no need to credit me for this example. Download and stuff. Could also resource mods upload this to the main site? Thanks. 4 Link to comment Share on other sites More sharing options...
TRD Posted November 28, 2006 Report Share Posted November 28, 2006 As before, great engine Damizean. Link to comment Share on other sites More sharing options...
SupaChao Posted November 28, 2006 Report Share Posted November 28, 2006 Like I said on aim, its wonderfully smooth, its very easy to understand. A wonderful tutorial, that I hope people use well. Link to comment Share on other sites More sharing options...
ssbfalcon Posted November 28, 2006 Report Share Posted November 28, 2006 Excellent Tutorial... Nice, smooth, and simple... Seeing that it uses such small BGSBoxes, we can probably mess with animated parallax layers (like the flashing lights in casino night) without worrying about bad performance... Link to comment Share on other sites More sharing options...
LarkSS Posted November 28, 2006 Report Share Posted November 28, 2006 That almost works the way I do paralax backgrounds except that after scrolling to the left of the screen a certain amount it positions itself back to prevent it extending any further. Nice tutorial dami. =D Also, I don't agree with not giving credit. Whether you want it or not, I'm giving it. =P Edit: Sometimes I wish I was good with figuring things out. =/ I can get tid bits and all but not really comprehend it. I usually get it quick though when I actually experiment with it. I'll give it a try when I get the chance. Thanks again. Link to comment Share on other sites More sharing options...
Felik Posted November 28, 2006 Report Share Posted November 28, 2006 Damzien! You rock! It's VERY COOL ENGINE. I'll use it in my game, I'll give you rep point and I also give you credit! (I've alreade gave you credit in Demo but I'll give you more!) Link to comment Share on other sites More sharing options...
LarkSS Posted November 28, 2006 Report Share Posted November 28, 2006 I can't get it to work. =/ I tried using the mod function to get the remainder of the current bg X divided by the width and it continues to extend off the screen as if I didn't even add it. What am I doing wrong? Here's the code: ( ( X Left Frame * 0.6615 ) - ( Alterable Value A( "Background Water 6" ) / 100 ) ) mod 32[/CODE] Link to comment Share on other sites More sharing options...
UltimateSonic Posted November 29, 2006 Report Share Posted November 29, 2006 *Dies* If it from Dami, it must be good! XD Link to comment Share on other sites More sharing options...
Rael0505 Posted November 29, 2006 Report Share Posted November 29, 2006 + uno rep point Link to comment Share on other sites More sharing options...
MidimanNull Posted November 29, 2006 Report Share Posted November 29, 2006 Wow, this is awesome. + 1 rep point + stuff. Link to comment Share on other sites More sharing options...
Damizean Posted November 29, 2006 Author Report Share Posted November 29, 2006 I can't get it to work. =/ I tried using the mod function to get the remainder of the current bg X divided by the width and it continues to extend off the screen as if I didn't even add it. What am I doing wrong?Here's the code: ( ( X Left Frame * 0.6615 ) - ( Alterable Value A( "Background Water 6" ) / 100 ) ) mod 32[/CODE]I've faced the same problem. It's because MMF doesn't like to mod floating point values. You have to convert the values into integers before using mod:[code] int( ( X Left Frame * 0.6615 ) - ( Alterable Value A( "Background Water 6" ) / 100 ) ) mod 32[/CODE] 1 Link to comment Share on other sites More sharing options...
LarkSS Posted November 29, 2006 Report Share Posted November 29, 2006 D= Tried it and it works. I also found though that part of the problem was the way I made the dimension of the bg change. =P It's working perfectly now, so thanks a lot dami. Funny how all I did was saw that you used a mod equation and that's it. I didn't bother to see exactly how you did it, I just wanted to see if I could do it on my own to better understand it. +One rep for you Link to comment Share on other sites More sharing options...
Spikey Posted February 16, 2008 Report Share Posted February 16, 2008 The link doesn't work anymore. Would like to see that example too. Link to comment Share on other sites More sharing options...
Super Napalm Posted February 16, 2008 Report Share Posted February 16, 2008 Why the hell did you just bump a topic over a year old? You would do well to read the date of the last post next time... Link to comment Share on other sites More sharing options...
Blazean Posted February 16, 2008 Report Share Posted February 16, 2008 The link doesn't work anymore. Would like to see that example too. First post now. Hi, i'm Blazean. Sorry if i'm breaking the rules, but the link of SFA developed by BlueFrenzy is not working. All the links using this directory don't seem to work anymore. Just thought you should know. Link to comment Share on other sites More sharing options...
Slingerland Posted February 16, 2008 Report Share Posted February 16, 2008 Don't care, Blazean. WHY THE FUCK WAS THIS TOPIC BUMPED?! IT IS A YEAR OLD. Spikey, I advise you to NOT do this again. Link to comment Share on other sites More sharing options...
Recommended Posts