A: If you want to change or create letters,
you'll have to modify or create the array which
defines which letter is made out of which blocks.
In the example below it explains how to create
letters ñ and Ñ
In the folder com/patrickjansendesign/pixelblocktextpro/
you will find file blocktext2.as That file contains
the variable declarations and array definitions
of each letter. Basically it defines which letter
contains which blocks in the 10×6 grid.
Easiest is to copy-paste the characters from
the ones without accents (“n” and
“N”) and then adjust those clones
to your needs. In short you’ll need to do
these steps:
1) first declare ‘public var boxes_Ñ:Array’
and ‘public var boxes_ñ:Array’
2) copy-paste the actionscript lines from the
ones without special accents so you can adjust
them, look for line
boxes_N = new Array( ... etc
change it to
boxes_Ñ = new Array( ... etc
and repeat this for letter ñ
3) now that you have a clone of those 2 letters,
you only need to insert the “block values”
for the top-accents into these new arrays. Just
fyi: the base rows are 1 to 10 and columns 1 to
6, that’s for letters without accents. For
special accents I added row 11 and 12 below and
row 13 and 14 above. So if you add these values
into the arrays you cloned you get the ~ above
the letter N and n. You can insert them at then
end of the arrays, doesn’t really matter
where you insert the blocks in the arrays.
,”box13_2”,”box13_3”,”box13_5”,”box14_1”,”box14_4”
|