Page 1 of 2

IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 4:39 pm
by Jayjay
This is an example of how to have a system similar to "IWBTG" scrolling for Lumer0
Here is the thread -> viewtopic.php?f=3&t=1186

EDIT: Sorry, the text box is cut off, show and hide the "Camera" object with Enter >.<

DOUBLE EDIT: Sorry!!! my example isnt set up right (I only played IWBTG about 2 times before I gave up), what you would do to achieve IWBTG scrolling is set it so that the Camera object is jumped ahead each time the player touches the edges

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 5:26 pm
by Lumer0
Ok thanks, but I'm still not sure how to make it jump somewhere else (To the next screen). Sorry, I'm a noob to construct.

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 8:22 pm
by Jayjay
Hmm, ok. well, once I get a chance (probably tomorrow) I will try to make another example and hopefully it will be closer to IWBTG

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 8:39 pm
by Lumer0
Thanks!

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 8:53 pm
by Doppel
Hey i made an example of IWBTG like scrolling, hope you like it.

Edit: Ok so just to make know you got it.

Gray box is only to center view on it.
Playfield is the multiply of 3x2 fields of dimensions 320:240.
In order to make a skipping to other field you must do this formula
[code:1o6imz08]floor(Sprite.X/320)*320+160[/code:1o6imz08]
Where Sprite is our player, the floor is needed to determine on which field you are so if you are in less than 320 then the value is 0 if your even further >640 then its 2 and so on, also the +160 is to center the position. The y scrollin is just the same as x just change 320 to 240 becouse height is lower.

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 9:02 pm
by Lumer0
Thanks!

I don't really understand it but I'll try and figure it out!


EDIT: I think I know how to use it with my game now.

Re: IWBTG Stlye Scrolling

PostPosted: Mon Jun 30, 2008 9:30 pm
by Jayjay
Yay, now I don't have to do it! err I mean, nice one Doppel :P

Re: IWBTG Stlye Scrolling

PostPosted: Tue Jul 01, 2008 5:35 pm
by kayin
It is entirely bizarre to see something classified as "IWBTG Scrolling" when I definitely didn't create it. :P

And now I know the math behind modulos, hooray!

Re: IWBTG Stlye Scrolling

PostPosted: Tue Jul 01, 2008 6:51 pm
by Doppel
[quote="kayin":2cevx4ko]
And now I know the math behind modulos, hooray![/quote:2cevx4ko]

... WHAT?

Re: IWBTG Stlye Scrolling

PostPosted: Tue Jul 01, 2008 7:05 pm
by Lumer0
The all mighty kayin has posted!