What it does
TextCharColorBlue takes iTextIndex (an integer) and iCharIndex (an integer), and answers an integer. That is the first of 2 forms. iTextIndex is the id of a Text object, the one CreateText returned: it is how the call knows what to act on.
Syntax
1
TextCharColorBlue(iTextIndex integer, iCharIndex integer) → integer2
TextCharColorBlue(iTextIndex integer, iCharIndex integer, blue integer)Parameters
| Name | Type | In forms |
|---|---|---|
| iTextIndex | integer | all |
| iCharIndex | integer | all |
| blue | integer | 2 |
What each form returns
| 1 | TextCharColorBlue(text, char) | integer |
| 2 | TextCharColorBlue(text, char, 128) | nothing |
Example · generated
Form 1, the command hands back the id
text = CreateText("hello")char = CreateTweenChar(1.0)DO Print(TextCharColorBlue(text, char)) Sync()LOOPForm 2, you choose the id yourself
text = CreateText("hello")char = CreateTweenChar(1.0)TextCharColorBlue(text, char, 128)DO Sync()LOOPCreateText and CreateTweenChar are there to give the call something to act on; TextCharColorBlue is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.