Step 1: Initiate the Blitting
To begin, we position the Blitter object at the desired co-ordinates of our first character. Next, we retrieve the menu text from the String object and store it in Text. Then we start a fast loop called "Blit".Please, create the following event:
- Start of Frame
: Set position at (32,48)
: Set X Margin to X( "
" )
: Set Text to String$( "
" )
: Start loop "Blit" Len(Text( "
" )) times
This fast loop will run 40 times, because there are 40 individual characters in the string stored in Text. Each loop, will blit a single character, the same as in the previous tutorial, type-writer style. But, since MMF2 only redraws the screen after the final event has been executed, we only see the finished blit.
For more information on fast loops, see the Fast Loops article.
4