abaudrand #1 Posted November 3, 2010 I'm trying to change the value of color between level with the background colors option. I don't understand why it won't compile. rem Generated 12/09/2010 14:06:40 by Visual bB Version 1.0.0.554 rem ********************************** rem *<filename> * rem *<description> * rem *<author> * rem *<contact info> * rem *<license> * rem ********************************** set tv pal set kernel_options pfcolors pfheights background Start COLUBK=$0E pfheights: 8 8 8 8 8 8 8 8 8 8 8 end pfcolors: $06 $0D $0C $0E $0E $0C $0E $0C $0A $0A $40 end playfield: ................................ ................................ ................................ ................................ ................................ .......X.X...................... .......XXXX........XX........... XX.....XXXX.......XXX.......XX.X XX.....X.XXX......XXXX...XXXXXXX XX.XX..X.XXX......XXXX...XXXXXXX ................................ end drawscreen if joy0fire then goto Start2 goto Start Start2 COLUBK=$0E pfheights: 8 8 8 8 8 8 8 8 8 8 8 end pfcolors: $46 $4D $4C $4E $0E $0C $0E $0C $0A $0A $40 end playfield: ................................ ................................ ................................ ................................ ................................ .......X.X...................... .......XXXX........XX........... XX.....XXXX.......XXX.......XX.X XX.....X.XXX......XXXX...XXXXXXX XX.XX..X.XXX......XXXX...XXXXXXX ................................ end drawscreen goto Start2 I've read that the pfheights need to be set once (maybe with a const, but I've forgot where I've read it) but if I skip the pfheights for the second playfield, it will not compile either... Did I missed something? Quote Share this post Link to post Share on other sites
+Random Terrain #2 Posted November 3, 2010 I've read that the pfheights need to be set once (maybe with a const, but I've forgot where I've read it) but if I skip the pfheights for the second playfield, it will not compile either...Did I missed something? You probably read it here: http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#kernop_pfheights Warning: When using pfcolors and pfheights together in the same game, you can only define pfheights: and pfcolors: one time, and you need to define pfheights first. Quote Share this post Link to post Share on other sites
abaudrand #3 Posted November 4, 2010 thanks Random Terrain. So does it also means that you can't change the colors of the background and they will be set forever for all the differents playfields of the game? Quote Share this post Link to post Share on other sites
SeaGtGruff #4 Posted November 4, 2010 (edited) thanks Random Terrain. So does it also means that you can't change the colors of the background and they will be set forever for all the differents playfields of the game? I believe that's right, if you use both options together. But I think I may have posted an example once, long ago, showing how you could move the tables into RAM so the colors and heights can be modified. I'll have to look around for it. Michael Edit: Found it -- http://www.atariage.com/forums/topic/112423-pfcolors-and-pfheights-together-in-ram/page__view__findpost__p__1358745 Edited November 4, 2010 by SeaGtGruff Quote Share this post Link to post Share on other sites
abaudrand #5 Posted November 4, 2010 thanks Michael... It's a difficult solution for me to do at the moment. :/ I don't have the knowledge to handle this nor code space for setting the SC option... Quote Share this post Link to post Share on other sites