Scrolling problem/ getting wrapping to work

Post your own tutorials, guides and demos.

Post » Fri Sep 26, 2008 4:24 pm

Having trouble getting the "stars" in this example to move when they hit the left side of the viewport.
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Fri Sep 26, 2008 6:41 pm

You are only moving the stars that reach the edge, maybe group them together? or create a function to move them all? Also, if you want to do wrapping in a simple way, create a layer with no scrolling and whenever the player moves and depending on how fast the player is moving, move the stars. If they have wrapping behaviour they should automatically appear on the other side and you can do this on multiple layers and move the stars different amounts for each layer, creating a star field illusion.
"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 » Fri Sep 26, 2008 7:24 pm

It looks pretty bugged to me, I made it work, though if this is a bug and it gets fixed, it will probably break this solution.
B
2
S
2
G
5
Posts: 236
Reputation: 2,122

Post » Fri Sep 26, 2008 8:45 pm

It was a bug. Fixed next build!
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Sat Sep 27, 2008 1:55 pm

Ah sweet. Glad that one is sorted :)







GIEF NEXT BUILD PLOX LOLZ. Sorry i got carried away.
B
2
S
2
G
5
Posts: 448
Reputation: 2,546

Post » Sat Sep 27, 2008 2:28 pm

[quote="alee":kyzhqu66]Ah sweet. Glad that one is sorted :)







GIEF NEXT BUILD PLOX LOLZ. Sorry i got carried away.[/quote:kyzhqu66]

What the

When I didn't see ~Sol after that post I had to do a double-take on your avatar :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Oct 06, 2008 1:37 pm

[quote="deadeye":2vm7djhu][quote="alee":2vm7djhu]Ah sweet. Glad that one is sorted :)







GIEF NEXT BUILD PLOX LOLZ. Sorry i got carried away.[/quote:2vm7djhu]

What the

When I didn't see ~Sol after that post I had to do a double-take on your avatar :P[/quote:2vm7djhu]

OMAIGAWD WUT U SED?

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests