I've started using sprites into my game and I have a problem when setting the sprites. I have this flash effect that happens when I change a sprite, you'll be able to see the sprite being changed and see a flash of the sprite from the top right corner or its home position. I tried to stop this flashing effect by having the sprite be cahnge after vsync has been called but that ends up with the sprite not being changed at certain times. How can I remove the flash effect when chainging a sprite?
BGOFS is used to make a background move. In your case you want a background to scroll so you will need a variable for the x or y axis.
Example
BGFILL 0,0,63,63,10,0,0,0 IF BUTTON ()==4 THEN BGX = BGX - 1 BGOFS 0,BGX,0,3x60
The following code will draw a background from the to left corner to the botom right corner and will scroll when the left button is pressed.
BGOFS has 4 parts. The first tell what layer is being controlled(0-1). The second is the x offset of the background and the third is the y offset. The final part is how quickly it moves to the point, the number will be in 1/10th of a second.