Computer Science Canada moving fonts |
Author: | starcraft [ Sun Jun 04, 2006 7:28 pm ] | ||
Post subject: | moving fonts | ||
For some reason, The string text I tried to move, its draging, leaving lines. I used a block to cover it up before but then the center of the "p" and "a' are covered in yellow. Can some one explain? |
Author: | Delos [ Sun Jun 04, 2006 8:18 pm ] | ||||
Post subject: | |||||
![]() Ok, first, some major problems:
Why would you declare these variables within the for loop? Aside from the fact that the first four are never even used...declare them outside instead, it's really bad technique otherwise (as will be elucidated shortly). font, font3, font4 all surmount to the same thing. By declaring them as a single font outside of the for loop, you can use them multiple times. eg.
As for the flickering - I believe you're referring to the flickering in the PacMan? I don't see any in the font, but that just might be my computer... Please refer to the Turing FAQ for details on how to reduce flicker. [/code] |