The problem is that objects tend to jump more than 1 pixel in a tick, causing the gap.
You need to set X from the object's current X position and add double the width.
-> Sprite: Set X to Sprite.X + 510
Take a look at this video... specifically, time stamp 5:00...