|
Post by Packobilly on Jun 4, 2020 11:35:27 GMT
Hi!! Is it possible to change the ink colour of block 0 by code? Thank you!
|
|
|
Post by Jonathan Cauldwell on Jun 4, 2020 12:48:47 GMT
You'd need to create a user routine to do that. If you had a simple user .asm file like this
ld b,a ld a,(bcol) and 248 or b ld (bcol),a ret
You'd then be able to set the ink colour of block 0 with USER n, where n is the ink colour
|
|
|
Post by Packobilly on Jun 5, 2020 7:19:22 GMT
Thank you, Jonathan.
|
|
|
Post by highrise on Jun 5, 2020 10:37:59 GMT
I used this trick a while back in Terrapins to change the background colour of some levels.
to change the colour block zero in the script, you can do the following:
.42 .65 .125 .62 .N .119
when N is the attribute you want block zero to be.
|
|
|
Post by Packobilly on Jun 8, 2020 8:42:35 GMT
Thanks, Highrise! I will try!!
|
|
|
Post by Packobilly on Jun 9, 2020 6:43:58 GMT
I used this trick a while back in Terrapins to change the background colour of some levels. to change the colour block zero in the script, you can do the following: .42 .65 .125 .62 .N .119 when N is the attribute you want block zero to be. It works real fine!! Thank you!!
|
|
|
Post by highrise on Jun 9, 2020 10:51:34 GMT
The following can be used to change the colour of any block:
.42 .65 .125 .22 .0 .30 .B .25 .62 .C .119
Where B is the number of the block, and C is the attribute colour you want.
|
|
|
Post by Packobilly on Jun 11, 2020 7:23:44 GMT
Its cool. You got the power, Highrise! Thank you.
|
|
|
Post by Packobilly on Jun 19, 2020 7:05:51 GMT
The following can be used to change the colour of any block: .42 .65 .125 .22 .0 .30 .B .25 .62 .C .119 Where B is the number of the block, and C is the attribute colour you want. []Thank you!
|
|