The Dink Network

Reply to Re: New Contest: Silent Protagonist

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 11th 2014, 08:52 AM
fairy.gif
Arik
Peasant He/Him
 
This was something I'd considered for another D-Mod a while back. While concatenating strings and writing out variable sentences isn't really possible, I did consider writing out the characters individually using a say_xy line. So it'd be something like

if (&var == 1)
say_xy("a", &xoffset, 50);
if (&var == 1)
say_xy("b", &xoffset, 50);

...

&xoffset += 10;


And have 0 refer to a blank character, 27 to a full stop or space etc. Then run the thing as a spawn of external function? Presumably you'd either need to be using a font with fixed character widths or have each letter add a different offset though. Ultimately I decided it was a lot of work for something with pretty limited use (and I'd have only wanted it for a one-off joke), but you would presumably be able to display a user-defined string in some situations, like if you had a dialogue box outputting text one character at a time, JRPG style.

(As an alternative to text you could probably have a bunch of sprites and then have the variable call up frame 1-26 when outputting the letter.)