So after I saw the Icon maker for Doors CSE, I decided to make one for myself for my 84+SE. Here is a snippet of code that is giving me problems:
Code:
The standard method of moving something with the arrow keys. C is the black/white indicator and will always be either 1 or 0. But the strangest part is that this will only allow me to move either down or to the left. I added a portion that put the values of K, A, B on the screen: K changed with my key-presses, but A and B would only increment if I pressed 24 or 36. I don't understand this!
Code:
:DCS
"code for icon
...
Repeat K=14:
getKey→K
If max(K={24,25,26,34
Then
A+2(K=26)-2(K=24→A
B+2(K=34)-2(K=25→B
real(12,7-C,A,B,A+1,B+1,1
End
...
End
The standard method of moving something with the arrow keys. C is the black/white indicator and will always be either 1 or 0. But the strangest part is that this will only allow me to move either down or to the left. I added a portion that put the values of K, A, B on the screen: K changed with my key-presses, but A and B would only increment if I pressed 24 or 36. I don't understand this!