Hi, guys.
Read my second post in this thread for more information about my second problem!
Yet another (dull) question. I looked in the forum but there appear to be thread(s) only about problem converting strings to char.
Here we go:
I have a function that takes a given string as parameter. Using Overlay (textual) it is supposed to display each character of the given string on the screen one after the other AND the previously displayed characters have to remain on the screen. Right now I'm facing a (very basic) problem that doesn't allow me to use text-Overlay.
Example: We have a string TEXT = "Hello!"
The function has to display TEXT on the screen as follows:
H
HE
HEL
HELL
HELLO
HELLO!
I know how I can do this but I can't find the proper function(s) that goes with the structure String.
Code: ags
The problem is that the CreateTextual(..., String) takes ONLY a string as parameter (here we have TEXT). The function String.Chars[int] returns a char. Using this I can get every single character in TEXT using a loop and accordingly use it to achieve my ultimate goal. Alas!, since CreateTextual(..., String) takes only a string I have to convert char to string in order to use it with this function. I can't find anything in the manual that resembles a convert-function.
I hope you understand what I mean and possibly give some kind of backup.
Cheers!
PS: Easiest way is to make this as an animation but I want to use code instead.
EDIT: Uuuuuuuuuuuups.
I just realized that
Code: ags
works, when you put the "". Problem solved. Sorry for this.
Now I face another problem - converting a char array into string. Is there an equivalent of String.valueOf(char[]) in AGS?
Read my second post in this thread for more information about my second problem!
Yet another (dull) question. I looked in the forum but there appear to be thread(s) only about problem converting strings to char.

I have a function that takes a given string as parameter. Using Overlay (textual) it is supposed to display each character of the given string on the screen one after the other AND the previously displayed characters have to remain on the screen. Right now I'm facing a (very basic) problem that doesn't allow me to use text-Overlay.

Example: We have a string TEXT = "Hello!"
The function has to display TEXT on the screen as follows:
H
HE
HEL
HELL
HELLO
HELLO!
I know how I can do this but I can't find the proper function(s) that goes with the structure String.

Overlay *textOverlay
textOverlay = Overlay.CreateTextual(x, y, textWidth, Game.NormalFont, 20, TEXT);
The problem is that the CreateTextual(..., String) takes ONLY a string as parameter (here we have TEXT). The function String.Chars[int] returns a char. Using this I can get every single character in TEXT using a loop and accordingly use it to achieve my ultimate goal. Alas!, since CreateTextual(..., String) takes only a string I have to convert char to string in order to use it with this function. I can't find anything in the manual that resembles a convert-function.

I hope you understand what I mean and possibly give some kind of backup.

Cheers!
PS: Easiest way is to make this as an animation but I want to use code instead.
EDIT: Uuuuuuuuuuuups.

String tempString = "text.Chars[i]";
works, when you put the "". Problem solved. Sorry for this.
