STGraves Posted February 8, 2015 Share Posted February 8, 2015 Hello i was creating a game bB and I added the function of pfscroll, if i run the game it works normally but then i die and if i reset the game the playfield just changes randomly, certain blocks of the PF change position as it feels like it, help please. STGraves_world.bas Quote Link to comment Share on other sites More sharing options...
Papa Posted February 8, 2015 Share Posted February 8, 2015 Here's how to fix it! change the first line to "reset" (no spaces) add the command pfclear on the next line (one space) add the next line as: goto opening change the third to last line from "if switchreset goto opening" to this: if switchreset goto reset This will clear your screen and make sure it looks right! You also may want to tell your sprites to start at zero so that there is no shadow in the middle of the screen! Up to you though! If you don't understand I can just paste the whole thing right here! Quote Link to comment Share on other sites More sharing options...
Papa Posted February 8, 2015 Share Posted February 8, 2015 ..also..apparently I'm a wiener. I also added this line after "opening" player1x=0:player1y=0 player0x=0:player0y=0 This will take away the ghost image of your player sprites!! cute little zapper game! I'm glad to be a German sausage.. Quote Link to comment Share on other sites More sharing options...
STGraves Posted February 15, 2015 Author Share Posted February 15, 2015 Thanks for your answer, yes please can you add the code please?, it's just that i can't get it to work properly. Quote Link to comment Share on other sites More sharing options...
STGraves Posted February 15, 2015 Author Share Posted February 15, 2015 Now i've encountered another problem, when i change from screen the current one appears out of place, i'm using the command pfscroll and it works great in the main screen, but when i die or reset the other screens seem to have moved with the main one, how can i correct it? 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.