Quote: "I attach my project, Please if possible show me your mean in this Project."
Here's an example of how you could easily add to your code to make the background endless:
SetDisplayAspect (-1)
spr = createSprite (0)
SetSpritePosition (spr, 20,50)
SetSpritePhysicsOn (spr, 2)
SetPhysicsGravity (0,300)
SetSpriteDepth (spr,0)
img = LoadImage ("Background.jpg")
spr2 = CreateSprite (img)
SetSpriteSize (spr2,120,100)
spr3 = CreateSprite (img)
SetSpriteSize (spr3,120,100)
SetSpritePosition(spr3,120,0)
dim bg[2] as integer
bg[1] = spr2
bg[2] = spr3
do
// Move The Player to x direction
SetSpritePhysicsVelocity(spr, 15.0, GetSpritePhysicsVelocityY(spr))
// Move View to x Dorection
SetViewOffset (GetSpriteX(spr)-10,0)
// jump and Fall Sprite
if GetRawKeyPressed(32) = 1
SetSpritePhysicsVelocity(Spr, GetSpritePhysicsVelocityX(Spr), -100.0)
endif
for i=1 to 2
if WorldToScreenX(GetSpriteX(bg[i]))<-120
SetSpriteX(bg[i], GetSpriteX(bg[i]) + 240)
endif
next
sync ()
loop