RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic Goto page Previous  1, 2 
View previous topic - View next topic  
Author Message
[Neodog] Solar
Wandering Minstrel


Joined: 27 May 2003
Posts: 122
Location: Solarland

PostPosted: Wed Jun 04, 2003 5:56 pm    Post subject: [quote]

You've got a point, but as long it's no flamewar :)
GA, then.
_________________
I think, therefore I am... I think.

Back to top  
mandrake*rpgdx
Guest





PostPosted: Mon Jun 09, 2003 9:32 pm    Post subject: [quote]

yeah, i find this stuff interesting, so why stop?

Also- with parrallax scrolling, you have to keep seperate varaibles for ewach layer...but you can also do some cool stuff. Like in Moira, (and this will also be in other games I do, cause it's cool) the fog on the bottom of the screen is constantly moving, which is simple- you just need to check to see if the map is at it's edge, and then draw again from the begining, thusly getting infinite parrallax scrolling that is constantly moving...
Back to top  
ThousandKnives
Wandering Minstrel


Joined: 17 May 2003
Posts: 147
Location: Boston

PostPosted: Mon Jun 09, 2003 10:07 pm    Post subject: [quote]

For repeating background tiles, I think what I did was simply modulus the current screen position by the width of the background tile, and then add that (or subtract it, or something) to the starting point value for drawing the background (then draw it as many times as is needed to fill the screen up).

And then to have it scroll at a slower or faster speed, I would simply modulus by (background width<<1) for double speed or (background width>>1) for half-speed. At least I think so, I havent peeked into that code in forever.

Using seperate values certainly works though, especially if you want it to constantly scroll. I think I put another variable called "offset" in for that. I dunno, but I'm starting to think your method is simpler hehe.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Mon Jun 09, 2003 10:09 pm    Post subject: [quote]

no, not repeating tiles, like having seperate maps for parrallax scriolling (it looks nicer, allows more detail, and having something like a parrallax scrolling map that was in zelda on the snes on the moantians (the tiny towns and clouds...very cool). It works better this way...and having it constantly scroll adn lead to cool effects :)
Back to top  
ThousandKnives
Wandering Minstrel


Joined: 17 May 2003
Posts: 147
Location: Boston

PostPosted: Mon Jun 09, 2003 10:27 pm    Post subject: [quote]

Oh, yeah, good point. You would DEFINATELY need to do it your way for that to work hehe
Back to top  
Post new topic Reply to topic Page 2 of 2 All times are GMT
Goto page Previous  1, 2 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum