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
55
S
28
G
115
Posts: 1,709
Reputation: 65,116

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
119
S
52
G
24
Posts: 791
Reputation: 23,719

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: No registered users and 31 guests