@all
Goto's can be quite OK. Look at this code snippet:
In the code above we print bitmap characters to the screen, and if a SPACE character ( ) is needed to be printed, we print nothing, but increment the X position to align the next position. This also saves having an empty SPACE character in the bitmap font ...
Goto's can be quite OK. Look at this code snippet:
For i = 1 To bot_numchars bot_currentchar = Asc(Mid(FadeTextBot$,i,1)) If bot_currentchar = bot_space Then : Goto skipbot : End If bot_currentchar = bot_currentchar - 65 DrawImage (vh_fadeintro_fnt,bot_tempx,bot_tempy,bot_currentchar) .skipbot bot_tempx = (bot_tempx+vh_fadeintro_fntwidth) : Next
In the code above we print bitmap characters to the screen, and if a SPACE character ( ) is needed to be printed, we print nothing, but increment the X position to align the next position. This also saves having an empty SPACE character in the bitmap font ...