Problems with Scrolling Background

I am trying to get my scrolling background to work but I keep getting gaps.

The first time the scrolling background scrolls by, everything seems fine. BUT.... if I do alot of firing of my weapon, a gap seems to develop... if I keep firing, eventually it grows.

For the scrolling background, I have two actors... both moving at the same speed (100 to the left)

Each has a rule that goes off when self.position.x <= -self.width/2

When that happens, it sets self.position.x to self.size.width+(self.size.width/2)-10

Both are 480x320, the same size as the scene.

To start, both overlap slightly.

Comments

Sign In or Register to comment.