[vcf-midatlantic] Collision detection 101
Evan Koblentz
evan at vcfed.org
Sat Apr 8 11:39:37 EDT 2017
>> In your code, you continually refresh the screen by overwriting the "sprite" with another one, even if you're at the same coordinates, which produces the flicker. ... So you need another level of variables to save the last move, eg, your last X,Y coordinates ... And so you would compare the current coordinates to the previous coordinates, If they are equal, that means you didn't move and so you're sitting in the same spot, then there is no need to refresh the screen, eg. don't jump to subroutine 'Refresh' <hint> and the flickering will stop
Okay that's kind of what I figured. Apparently I've been using (gasp) applied knowledge :) and starting to understand what all these problems have in common... sounds easy to implement this fix in just a line or to before I make the plot. Will try it tonight. Thanks!
More information about the vcf-midatlantic
mailing list