Advanced Text Drawing Function by Mudbud Productions7th Jun 2011 22:20
|
---|
Summary This code enhances the TEXT command greatly. ALL code is free to use unless otherwise specified. Credit is appreciated but not required. Description It first checks the length of the string and see's if it overlaps the eges of the screen, if it passed the IF logic then it will continue and output your message and color choice. function TextExt( x as integer , y as integer , message as string , color as integer ) Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com //Created by Mudbud Productions function TextExt( x as integer , y as integer , message as string , color as integer ) if len(message) = 0 then exit if x < 0 or x > screen width() then exit if y < 0 or y > screen height() then exit ink color , 0 text x , y , message endfunction |