esplonky #1 Posted September 29, 2011 How would i have multiple screens on a game in bB? I've tried: playfield1 playfield: ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ end if joy0right && player0x = 98 then goto playfield2 playfield2 playfield: ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ end but that doesn't work for me Quote Share this post Link to post Share on other sites
esplonky #2 Posted September 29, 2011 ANd i forgot to put drawscreens in that but yeah. you get the idea Quote Share this post Link to post Share on other sites
+Random Terrain #3 Posted September 29, 2011 You have your main loop running, then when you want a new playfield, you jump to it using either gosub, goto, on . . . gosub or on . . . goto. At the end of each playfield, you use return if you used gosub or on . . . gosub to jump there or if you used goto or on . . . goto, you jump back into the main loop using a goto. It all depends on what you want to do. Quote Share this post Link to post Share on other sites
esplonky #4 Posted September 29, 2011 uhhh can you explain it in code please? Quote Share this post Link to post Share on other sites
+Random Terrain #5 Posted September 29, 2011 (edited) uhhh can you explain it in code please? playfield: ................................ ................................ ....XXXXXXXXXX....XXXXXXXXXX.... ....X......................X.... ....X......................X.... ....X......................X.... ................................ ................................ ....XXXX....XXXXXXXX....XXXX.... ................................ ................................ end __Main_Loop if joy0right && player0x = 98 then gosub __Playfield_02 drawscreen goto __Main_Loop __Playfield_02 playfield: ................................ ................................ ....XXXXXX...X....X...XX...X.... .............X....X........X.... .............X....X........X.... ....XX....XXXX....XXXX.....X.... ................................ ................................ ....XX...XX..XXXXXX..XX...XX.... ................................ ................................ end return Edited September 29, 2011 by Random Terrain 1 Quote Share this post Link to post Share on other sites
esplonky #6 Posted September 29, 2011 Sweet! thx!! Quote Share this post Link to post Share on other sites