Page 1 of 1

how do ATTR and SCREENS work?

Posted: Fri Apr 19, 2024 11:51 pm
by Crayon21
I've tried to get collision detection to work but I'm not having any success. How do ATTR and SCREENS work?

Re: how do ATTR and SCREENS work?

Posted: Sat Apr 20, 2024 1:51 pm
by dr beep
The short answer: RTFM

The polite answer:
ATTR(Y,X) returns the setting of the colours on that field.
So when your last printed character there is a different INK or PAPER then you will get that in return with something like LET A=ATTR(Y,X)

SCREEN$(Y,X) can return the printed character there but only when that character is part of the characterset, so UDG will normally not work.