Flickering Hyphen under a running counter

Discussions related to graphics (2D and 3D), animation and games programming
hinckleyj
Posts: 25
Joined: Sat 02 Jun 2018, 08:02

Flickering Hyphen under a running counter

Post by hinckleyj »

Hi everyone,

When you are displaying a fast running counter, there are hyphens flickering under the counter which makes it look very untidy.

Does anyone know how to prevent this without having to cause the counter to run slower?

You can test it with this:-
10 A%=1
20 PRINT TAB(1,1);A%
30 A%=A%+1
40 GOTO 20

(Apologies for the 'Goto'. It was just the quickest way to show you what I mean)

Thanks.
p_m21987
Posts: 177
Joined: Mon 02 Apr 2018, 21:51

Re: Flickering Hyphen under a running counter

Post by p_m21987 »

Hello,

That hyphen is actually the text cursor. You can make it invisible with the OFF keyword.

Code: Select all

   10 OFF
   20 A%=1
   30 PRINT TAB(1,1);A%
   40 A%=A%+1
   50 GOTO 30
PM
hinckleyj
Posts: 25
Joined: Sat 02 Jun 2018, 08:02

Re: Flickering Hyphen under a running counter

Post by hinckleyj »

Wow! As simple as that (when you know how).

Thank you Patrick.

Solved

John