I have an image I want to scroll in the background but when the images reaches the edge you can see the split where the image ends and the image begins. Is there a way to fix that through code or should I tell my artist to change the image.
//load & create sprite & set variables for background
streetImage = agk::LoadImage("images/nomoon.png");
bgSprite = agk::CreateSprite(streetImage);
agk::SetSpriteSize(bgSprite,-1, 100.f);
agk::SetSpriteVisible(bgSprite,1);
agk::SetSpritePosition(bgSprite,fx, 0);
//my attempt to wrap/loop image
agk::SetSpriteUVScale(bgSprite,1,1);
agk::SetImageWrapU(streetImage,1);
agk::SetImageWrapV(streetImage,1);
imageWidth = agk::GetImageWidth(streetImage);
agk::SetSpriteUVBorder( bgSprite, 0.5);
skySpeed += 1.51f;
agk::SetSpriteUVOffset(bgSprite, skySpeed/imageWidth, 0.0)