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
49
S
24
G
107
Posts: 1,579
Reputation: 60,299

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
101
S
45
G
22
Posts: 772
Reputation: 21,468

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: 99Instances2Go, Yahoo [Bot] and 6 guests