IWBTG Stlye Scrolling

Post your own tutorials, guides and demos.

Post » Mon Jun 30, 2008 4:39 pm

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
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Jun 30, 2008 5:26 pm

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.
B
2
G
4
Posts: 34
Reputation: 1,118

Post » Mon Jun 30, 2008 8:22 pm

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
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Jun 30, 2008 8:39 pm

Thanks!
B
2
G
4
Posts: 34
Reputation: 1,118

Post » Mon Jun 30, 2008 8:53 pm

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.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Mon Jun 30, 2008 9:02 pm

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.
B
2
G
4
Posts: 34
Reputation: 1,118

Post » Mon Jun 30, 2008 9:30 pm

Yay, now I don't have to do it! err I mean, nice one Doppel :P
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Tue Jul 01, 2008 5:35 pm

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!
B
12
S
4
G
4
Posts: 238
Reputation: 2,426

Post » Tue Jul 01, 2008 6:51 pm

[quote="kayin":2cevx4ko]
And now I know the math behind modulos, hooray![/quote:2cevx4ko]

... WHAT?
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Tue Jul 01, 2008 7:05 pm

The all mighty kayin has posted!
B
2
G
4
Posts: 34
Reputation: 1,118

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest