This works fine for me
the button stays in the same place and does not move
the background sprites all move with left/right arrows
I cant get the button to fail
//background infinite scrolling - good for jetpack joyride style of gameplay
//made for iphone resolution - change for your own prefered
SetVirtualResolution(960,640)
//background array
dim BG[10]
//set background sprite
for num = 1 to 9
BG[num] = CreateSprite (0)
SetSpriteSize(BG[num],64,64)
SetSpriteColor(BG[num],random(1,255),random(2,255),random(1,255),255)
SetSpritePosition(BG[num],random(0,960),random(0,640))
next num
//main loop
AddVirtualButton(1,100,100,100)
Do
if GetRawKeyState(37)
x=x+1
endif
if GetRawKeyState(39)
x=x-1
endif
if GetVirtualButtonState(1)
Print("Button Works")
endif
//offsetting
SetViewOffset (x, 0)
sync()
Loop