Large Gap in Scrolling Background

Get help using Construct 2

Post » Fri May 19, 2017 9:20 pm

Message: ma9ic can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi,

I am trying to create a horizontal scrolling background, i have it scrolling but after a while a large gap appears.

http://imgur.com/a/Xtyvi

I can't seem to debug the issue, has anyone else had a similar issue.
B
3
Posts: 6
Reputation: 189

Post » Sat May 20, 2017 4:41 am

If your background image origin point is in the center, you'll need your background to be 2 times the window width. You currently set it to equal window width on start of layout.
Mistakes were made.
B
52
S
26
G
110
Posts: 1,620
Reputation: 62,161

Post » Sat May 20, 2017 7:32 pm

In my experience it would be best to use power of 2 as speed variable. Check my example about it:
alextro wrote:The implementation: moving_background_vari.capx
remember to using the power of 2 for moving speed
ImageImage
B
108
S
49
G
23
Posts: 783
Reputation: 22,611

Post » Thu Jun 01, 2017 8:51 pm

Perfect Thanks guys !!!
B
3
Posts: 6
Reputation: 189


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 43 guests