Larry
New Member
Posts: 40
|
Post by Larry on Nov 22, 2021 17:47:11 GMT -5
Solved my own problem I had the box starting at column 680. I had forgotten that the upper left of the box is 0 0 regardless of where it is placed. To be as old as I am and to have been programming as long as I have, to make a rookie mistake like this totally hilarious.
In my program I am reading a string one character at a time. If it finds a "d", then it is supposed to draw a box 10 by 10 pixels at the specified location. I might use boxfilled, if it works.My problem is that even using the proper spacing, as long as I use the variables, it does not draw anything. The < > ^ and v characters move the pen 10 pixels in the given direction.
When I first wrote it, I use r and c for row and column, but wrote the code as below. It at least drew something. and for an odd reason, it drew it where it was supposed to.
case "d" print #main.gb1,"down;color black" print #main.gb1,"down;color black;place ";col;" ";row; print #main.gb1,"box ";col+10;" ";row+10;
|
|