JorgeLiborinho Posted February 9, 2011 Share Posted February 9, 2011 I'm only making a simple game, this is one of my first games that I'm doing! I ultilize Batari Basic to write the codes and creating the game! Look at the code I wrote: ------------------------------------------------------------------------------ main COLUBK=02 player0color: $00 $F4 $F4 $88 $98 $F6 $F6 $F6 end player0: %01101100 101000 111000 %10111010 %11111110 111000 111000 111000 end player0x=50 player0y=50 drawscreen goto main main2 COLUBK=02 player0color: $00 $F4 $F4 $88 $98 $F6 $F6 $F6 end player0: %01101100 101000 111000 %10111010 %11111110 111000 111000 111000 end player0x=50 player0y=50 drawscreen goto main2 ---------------------------------------------------------------------- I wrote this code here: player0color: $ 00 $ F4 $ F4 $ 88 $ 98 $ F6 $ F6 $ F6 end With this code the player should be colorful, but because when I tested it gets all black? Quote Link to comment Share on other sites More sharing options...
diogoandrei Posted February 9, 2011 Share Posted February 9, 2011 (edited) hey, you really should post topics like that inside the batari Basic sub-forum, once they are related to bB - it's over here To have multicolored players you need to set a kernel option for that... Random Terrain has it all: 1. kernel options 2. player colors 3. plus, you have two game loops... I mean, when will the program reach "main2"? It will keep on going forever inside "main". ...something like the attached files Cheers default.bas default.bas.bin Edited February 9, 2011 by diogoandrei 1 Quote Link to comment Share on other sites More sharing options...
JorgeLiborinho Posted February 9, 2011 Author Share Posted February 9, 2011 Thanks for the support! Problem solved! 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.