Ce que fait la commande
TextCharPosition règle CharPosition sur un objet Text. Il prend iTextIndex (un entier), iCharIndex (un entier), x (un flottant) et y (un flottant), et ne rend rien. iTextIndex est l'identifiant d'un objet Text, celui que CreateText a rendu : c'est ainsi que l'appel sait sur quoi agir.
Syntaxe
TextCharPosition(iTextIndex integer, iCharIndex integer, x float, y float)Paramètres
| Nom | Type |
|---|---|
| iTextIndex | integer |
| iCharIndex | integer |
| x | float |
| y | float |
Chaque forme rend
rien
Exemple · engendré
text = CreateText("hello")char = CreateTweenChar(1.0)TextCharPosition(text, char, 100.0, 120.0)DO Sync()LOOPCreateText et CreateTweenChar sont là pour donner à l'appel quelque chose sur quoi agir : TextCharPosition est la ligne qui compte. La boucle DO … LOOP n'est pas décorative : un programme BASIC classique s'arrête dès qu'il n'a plus de lignes, et c'est Sync() qui dessine l'image.