Flickering Hyphen under a running counter

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

Flickering Hyphen under a running counter

Post by hinckleyj » Sat 02 Jun 2018, 08:11

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.

Patrick M
Posts: 39
Joined: Mon 02 Apr 2018, 21:51

Re: Flickering Hyphen under a running counter

Post by Patrick M » Sat 02 Jun 2018, 12:12

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: 11
Joined: Sat 02 Jun 2018, 08:02

Re: Flickering Hyphen under a running counter

Post by hinckleyj » Sat 02 Jun 2018, 13:41

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

Thank you Patrick.

Solved

John

Post Reply