LoginLogin

Big Map

Root / Programming Questions / [.]

Jack_AkkiartoCreated:
Hello, i am new to SmileBasic, but i have used petit computer for some time. Could somebody give an easy example how to make a big map to scroll? Like 10 times the size of the screen for example? I know how to set a Background and move it with BGOFS, but in Game 3(from the samples) for example, the background seems to be much bigger than one part to edit in the map editor, and there seems to be nearly no loading time for it. Would be awesome if somebody could help me.

First you need to increase the size of the BG screen so it can be more bigger than the screen: BGSCREEN Layer,Width,Height Then fill it with whatever you want and modify their offset by using BGOFS or BGANIM.

Thanks, it worked! Well, this was way easier than expected. Thank you very much ^^

much luck to you and coding your game!