In my experimenting I have managed to get a background to scroll horizontally using the code below as found here on the forum. Thanks to the author of this
function ScrollBackground(game ref as gameType)
SetSpriteUVOffset( game.bg, game.bgUoffset, 0 )
inc game.bgUoffset, 0.04
sync()
endfunction
However I am wanting to place objects (sprites) on the background that will scroll with it e.g. buildings etc along the edge of a scrolling road
I have tried several variations of the following (LevelOne_testcar being the sprite I wish to synchronise with the scrolling game.bg background)
setspriteoffset(LevelOne_testCar, getspriteoffsetx(game.bg)+100, GetSpriteY(LevelOne_testCar))
thanks
Bob
We are now fully operational - that is, we are in a constant flap instead of having isolated confused situations.