Hi.
I wrote a code for show endless background but when use image, seem game stop at a moment. please see my code and if there is any problem guide me to fix it.
Thanks.
SetDisplayAspect( -1 )
global dim spr[2]
global image as integer
image = LoadImage("back.png")
spr[1] = CreateSprite(image)
SetSpriteSize(spr[1],100,100)
SetSpritePosition(spr[1],0,0)
spr[2] = CreateSprite(image)
SetSpriteSize(spr[2],100,100)
SetSpritePosition(spr[2],100,0)
do
print (GetViewOffsetX())
SetViewOffset(GetViewOffsetX() + 0.5,GetViewOffsetY())
if GetViewOffsetX() > 100
SetViewOffset(0.0,0.0)
endif
Sync()
loop