esplonky Posted September 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
esplonky Posted September 29, 2011 Author Share Posted September 29, 2011 ANd i forgot to put drawscreens in that but yeah. you get the idea Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted September 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
esplonky Posted September 29, 2011 Author Share Posted September 29, 2011 uhhh can you explain it in code please? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted September 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
esplonky Posted September 29, 2011 Author Share Posted September 29, 2011 Sweet! thx!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.