I originally imagined something like this.
Code: Select all
GRAPHICS
FIELD 1 TEXT "Hi, backatcha!" AT 100,100 SIZE 150,32
FIELD 1 BACK COLOR 0,0,0
FIELD 1 FONT COLOR 1,0,0
FIELD 1 FONT SIZE 20
DO
FIELD 1 SHOW!PAUSE .3
FIELD 1 HIDE!PAUSE .3
UNTIL 0
Now I just need to figure out how to effectively (and hopefully, easily) print a sentence with just one flashing word. I'm thinking I'll need to figure out how to assign a dynamically sized field based on the length of each word - most likely in the form of a function that takes a word as a parameter and determines the length of the field required to print just that one word.
This whole exercise came about from a regular learning thing I do when I try to learn a new programming language. I break out my old 1982 Sinclair computer manual and one-by-one replicate the functions in the new language to make sure I know how to use the protocols to achieve the same results. Most commands between BASIC versions are identical with few exceptions. But I eventually get to the point where I can either do all of the same functions in the new language or (as in the case with Swift and Python) decide it just isn't worth all the endless, cryptic coding to achieve it and then move on. That's why I just love smart BASIC. But FLASH and INVERSE eluded me until now.
I did this same thing to learn HTML and CSS. I learned it, found a way to achieve all of the old functions, and then promptly decided YUCK! and moved on. My go to backup BASIC is Liberty BASIC with it's free cousin Just BASIC and web-based sister Run BASIC. Unfortunately, they either only run on Windows (and I'm a hard and fast Mac guy by preference) or they can't compile.
I've gone through several other versions of BASIC with differing levels of disappointment; Gfa, Pure, Spider, Gambas, Xojo...But then when I came across smart BASIC, it all started to click. I finally found a new home after three decades. Now if there was a version of smart BASIC native to the Mac to compile Mac apps too, I would lose my mind!
That would be my own personal Nirvana. I would pay good money for that!