How do I make the floor in infinite loop?

Get help using Construct 2

Post » Fri May 26, 2017 5:59 am

Sprite3 --> X<= -560 --> Sprite3 --> Set X to 0 ,

it waits for the floor to end before it can make a new floor. i want it to be smooth help please?
B
5
S
1
Posts: 11
Reputation: 349

Post » Fri May 26, 2017 9:46 am

@yuji567

There are three different techniques I often use to make smoothly scrolling backgrounds/floors on a loop, depending upon what the project requires. Assuming right-to-left movement:

1) Use two instances of the same sprite the width of the screen and wrap them around each other
2) Use one instance double the width of the screen
3) Use a tiled background one tile larger than the width of the screen

I've demo'd each here:

https://www.dropbox.com/s/sottt7g05enlr ... .capx?dl=0

The main thing is to reposition with respect to the current X, otherwise you can start to get seams and stutters in the scrolling.

Hope that helps :)
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Tue Aug 08, 2017 8:24 pm

@mekonbekon

Thanks for example! :)
B
16
S
2
G
2
Posts: 7
Reputation: 1,389


Return to How do I....?

Who is online

Users browsing this forum: RetrocadeMedia and 1 guest