This is my little lame code, I'm trying to make a text adventure thing.
This is what it looks like after running the list. I have some things as an example of what characters I'd like changed.
Obviously, you can see labeled with pink box/arrow.
This I what I want changed. I'd like to have it grey like the line I typed across the screen.
It might be really late and I'll have to check this thread tomorrow, but I need help with this. Hopefully someone's up to respond to this garb.
Also, excuse me if I broke any rules. I made this account just now to post this thread. That, and thank you all.
So you type the line as PRINT, then SHIFT+2 to open quotes then press CTRL and a number key 1-8 or COMMODORE and 1-8 to get a colour. Onscreen you will see a reversed symbol. But when the program runs it will change the cursor colour and print the characters in that colour.
You can have multiple colour changes in a line, as long as the BASIC line is less than 80 characters.
So to get that grey colour you would press COMMODORE and 4 inside the quotes.
The colour names are printed on the side of the keys.
I am completely baffled by your reaction. Changing the color of text on the VIC-20 and C64 is an incredibly simple thing to do.
Using POKE646,x is probably to most cryptic approach. There is a reason why you see BLK, WHT, RED and other color names on the numbers 1 to 8 on the VIC-20 and C64 keyboard and that's because pressing CTRL with one of these numbers changes the following characters to the chosen colors.
Specifically on the C64, pressing the Commodore key (lower left corner of the keyboard) and a number from 1 to 8 gives you an additional 8 colors.
You can also use CHR$ codes listed on page 141 of the original C64 user manual.
Try Something like:
Code: Select all
10 PRINT CHR$(30);"MY NAME IS";CHR$(28);" FRANCOIS";CHR$(158);" LEVEILLE"
5 - White
28 - Red
150- Light Red
151- Dark Gray
153- Light Green
154- Light Blue
155- Light Gray
The easiest way remains pressing CTRL or C= with the quote mode activated as stated in the previous post by merman.
Calm down. You have to RUN the code. You are using "print" codes, they don't actually change the color RIGHT THERE, they work when the string in quotes is printed back by the BASIC interpreter when running the code.
Users browsing this forum: No registered users and 3 guests